Skip to content

Preserve linebreaks on text outside of entities

Erwan Rouchet requested to merge token-preserve-linebreaks into master

Closes #828 (closed)

This bug was already noticed in !1073 (closed) and I had made multiple unsuccessful attempts to find a proper fix for it. This is actually two bugs in one:

  • only the first line break is removed
  • line breaks should be kept outside of entities

This fixes both bugs and adds a comment to make it more clear that we know we are not telling the truth when displaying entities that span multiple lines.

Edited by Erwan Rouchet

Merge request reports

Loading