Visual: FIX: In Paragraphs newlines will be stripped no matter what

XMLWordPrintable

    • High
    • None
    • Stripping of newlines in paragraphs in the visual did ignore the "stripWhitespaceFromSegments" setting, this is fixed now.
    • None

      PROBLEM

      • In detected Paragraphs in the Visual any newlines coming from the segments will be stripped ignoring the "stripWhitespaceFromSegments" setting
      • linebreaks in the segments between words without blanks/whitespace will result in "glued" words with stripWhitespaceFromSegments setting

      SOLUTION

      • bring this config to the T5VisualSegmentUpdater class and respect it there when stripping linebreaks for paragraphs
      • improve the stripping to not glue words together

      FRONTEND-TESTS

      • use nextcloud/Developer/test-data/visual/testdata-pdf/PDF-MissionTranslate5-en-de.zip to test (it has lots of paragraphs)
      • test with the task-config setting "runtimeOptions.plugins.VisualReview.stripWhitespaceFromSegments" active or inactive (it can be set at any time!)
      • check the results in the visual WYSIWYG frame and also when exporting the visual as PDF

            Assignee:
            Axel Becher
            Reporter:
            Axel Becher
            None
            None
            Aleksandar Mitrev
            Thomas Lauria
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None