diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-07-26 10:53:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-07-26 10:53:15 +0000 |
| commit | 839c74d60e8c1dd4e2be802130905bafff934647 (patch) | |
| tree | 2b586fba2e96713985ca310a1df7b9a815217a34 /src/text-editing.cpp | |
| parent | Fix snapping of start point of path when holding the CTRL key in the Bézier ... (diff) | |
| download | inkscape-839c74d60e8c1dd4e2be802130905bafff934647.tar.gz inkscape-839c74d60e8c1dd4e2be802130905bafff934647.zip | |
Commented out tidy_operator_styled_whitespace (fixes bug 1477723).
Fixed bugs:
- https://launchpad.net/bugs/1477723
(bzr r14258)
Diffstat (limited to 'src/text-editing.cpp')
| -rw-r--r-- | src/text-editing.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/text-editing.cpp b/src/text-editing.cpp index 050e223eb..d9cebc625 100644 --- a/src/text-editing.cpp +++ b/src/text-editing.cpp @@ -1805,6 +1805,14 @@ static bool tidy_operator_redundant_semi_nesting(SPObject **item, bool /*has_tex return false; } + +/* tidy_operator_styled_whitespace commented out: not only did it have bugs, + * but it did *not* preserve the rendering: spaces in different font sizes, + * for instance, have different width, so moving them out of tspans changes + * the document. cf https://bugs.launchpad.net/inkscape/+bug/1477723 +*/ + +#if 0 /** helper for tidy_operator_styled_whitespace(), finds the last string object in a paragraph which is not \a not_obj. */ static SPString* find_last_string_child_not_equal_to(SPObject *root, SPObject *not_obj) @@ -1883,6 +1891,7 @@ static bool tidy_operator_styled_whitespace(SPObject **item, bool has_text_decor delete_obj->deleteObject(); return true; } +#endif /* possible tidy operators that are not yet implemented, either because they are difficult, occur infrequently, or because I'm not sure that the @@ -1917,8 +1926,7 @@ static bool tidy_xml_tree_recursively(SPObject *root, bool has_text_decoration) tidy_operator_repeated_spans, tidy_operator_excessive_nesting, tidy_operator_redundant_double_nesting, - tidy_operator_redundant_semi_nesting, - tidy_operator_styled_whitespace + tidy_operator_redundant_semi_nesting }; bool changes = false; |
