lyx_mirror/src/tex2lyx
Georg Baum 6f84ceb821 Make tex2lyx tests green again
Unfortunately I overlooked in 44f73b0650 that the first three whitespace
changes in box-color-size-space-align.lyx.lyx were actually correct, so they
should not have been reverted. In detail:
1), 2): The space after \raggedleft must not be part of the ERT inset, but it
        is ouput by check_space() as part of the standard text which follows.
3):     The space in front of www is caused by the fact that there is a
        newline between the opening brace of the parbox and the \centering
        command, so this space is not the one after \centering (which is
        correctly swallowed). This additional space is in fact not needed,
        and the contents would look better in LyX without it, but since it is
        not caused by special code I'll put it back in the refernce for now.
        We can still improve this in the future if anybody has a good idea.

The remaining whitespace issues are all fixed by a simple change in
parse_text(): Instead of always eating whitespace after detecting \centering
et al, and always output a space as part of the ERT if these commands need an
ERT, let the standard space handling mechanism kick in: skip whitespace if
no ERT is used (in this case LyX will always output the needed space), and
do not touch whitespace if an ERT is used.
2015-06-11 22:25:00 +02:00
..
test Make tex2lyx tests green again 2015-06-11 22:25:00 +02:00
.gitignore Setup .gitignore for generated files 2012-03-22 02:16:12 +01:00
boost.cpp tex2lyx does not use LYXERR, but basic cerr stream 2013-05-31 11:38:41 +02:00
CMakeLists.txt Fix building with cmake on cygwin. 2014-12-26 17:00:23 +01:00
Context.cpp Fix plaintext output of dashes (bug #3647) 2015-02-24 22:06:12 +01:00
Context.h Fix plaintext output of dashes (bug #3647) 2015-02-24 22:06:12 +01:00
dummy_impl.cpp Fix tex2lyx linker error on windows 2015-04-08 22:06:51 +02:00
Makefile.am Revert e1c04e56e1 2015-05-28 22:11:35 +02:00
math.cpp tex2lyx: support further TIPA characters 2013-02-19 00:07:24 +01:00
Parser.cpp Fix parsing of verbatim options (bug #9113) 2015-01-03 20:45:06 +01:00
Parser.h Use macro LYX_USE_CXX11 in one more location 2015-05-22 12:41:30 +02:00
pch.h
Preamble.cpp tex2lyx/Preamble.cpp: revert a part of [041a3add/lyxgit] 2015-05-25 17:49:54 +02:00
Preamble.h Update tex2lyx and tests after 306b136c 2015-05-14 01:02:37 +02:00
table.cpp Move global variable to preamble 2015-01-06 19:21:34 +01:00
tex2lyx.1in Fix encoding for copying LaTeX from clipboard 2013-11-11 21:52:14 +01:00
tex2lyx.cpp Update tex2lyx and tests after 306b136c 2015-05-14 01:02:37 +02:00
tex2lyx.h Remove unused declaration 2015-01-14 21:44:28 +01:00
text.cpp Make tex2lyx tests green again 2015-06-11 22:25:00 +02:00
TODO.txt tex2lyx/text.cpp: add support for box alignment 2015-05-19 02:19:24 +02:00