]> git.lyx.org Git - features.git/commit
Fix plaintext output of dashes (bug #3647)
authorGeorg Baum <baum@lyx.org>
Tue, 24 Feb 2015 20:58:27 +0000 (21:58 +0100)
committerGeorg Baum <baum@lyx.org>
Tue, 24 Feb 2015 21:06:12 +0000 (22:06 +0100)
commit8aa37c43a1e7bc6038322183c63aecdd2024ab59
treea637336d5bc3d20edbd82f4374343b739eefcbd1
parentfc9e6326b9838d6b7e0344536cab3d3976b1db07
Fix plaintext output of dashes (bug #3647)

Previously, consecutive dashes in .lyx files were combined to endash and emdash
in some cases, and in other cases they were output as is. This made the code
complicated, and resulted in inconsitencies ((bug #3647).
Now, a dash in a .lyx file is always a dash in the output, for all flavours.
The special handling is moved to the input side, so that you still get an
endash if you type two hyphens. If needed, this can be changed or made
customizable without the need to update the file format again. Many thanks
for the fruitful mailing list dicsussion, which contributed significantly to
the final version.
24 files changed:
development/FORMAT
lib/lyx2lyx/LyX.py
lib/lyx2lyx/lyx_2_2.py
src/Paragraph.cpp
src/Text.cpp
src/tex2lyx/Context.cpp
src/tex2lyx/Context.h
src/tex2lyx/test/CJK.lyx.lyx
src/tex2lyx/test/CJKutf8.lyx.lyx
src/tex2lyx/test/DummyDocument.lyx.lyx
src/tex2lyx/test/Dummy~Document.lyx.lyx
src/tex2lyx/test/XeTeX-polyglossia.lyx.lyx
src/tex2lyx/test/algo2e.lyx.lyx
src/tex2lyx/test/box-color-size-space-align.lyx.lyx
src/tex2lyx/test/test-insets.lyx.lyx
src/tex2lyx/test/test-memoir.lyx.lyx
src/tex2lyx/test/test-modules.lyx.lyx
src/tex2lyx/test/test-refstyle-theorems.lyx.lyx
src/tex2lyx/test/test-scr.lyx.lyx
src/tex2lyx/test/test-structure.lyx.lyx
src/tex2lyx/test/test.lyx.lyx
src/tex2lyx/test/verbatim.lyx.lyx
src/tex2lyx/text.cpp
src/version.h