-
Type:
Bug
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: VisualReview / VisualTranslation
-
High
-
None
-
Stripping of newlines in paragraphs in the visual did ignore the "stripWhitespaceFromSegments" setting, this is fixed now.
-
None
-
Emptyshow more show less
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