lyx_mirror/src/tex2lyx
Jean-Marc Lasgouttes 95bc23133a tex2lyx: Add a newline at the end of comment if not at the end of a paragraph.
When importing TeX code like
  %comment
  TEXT
the LyX document currently becomes
  [ERT %comment] TEXT
so that TEXT is now part of the comment.

Now output_comment adds a trailing newline if the token after the
comment is not a newline. Note that the newline that marks the end of
the comment has already been parsed at this point.

tex2lyx tests have been checked manually and updated.

Fixes ticket #9551.
2015-11-23 14:02:06 +01:00
..
test tex2lyx: Add a newline at the end of comment if not at the end of a paragraph. 2015-11-23 14:02:06 +01: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 Remove the TEX2LYX define when compiling tex2lyx 2013-09-29 15:26:23 +02:00
Context.cpp Fix bug #8468: Wrong import of UTF8 CJK. 2012-12-30 20:52:49 +01:00
Context.h Whitespace only 2012-12-14 12:33:39 +01:00
dummy_impl.cpp Remove dependency on NO_LAYOUT_CSS #define in Layout.cpp 2013-09-29 15:26:15 +02:00
Makefile.am Parse post command argument insets (bug #8473) 2015-01-03 18:14:20 +01: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:51:02 +01:00
Parser.h Fix compilation with libc++ 2014-03-04 23:27:57 +01:00
pch.h
Preamble.cpp Allow quotes in PDF text properties 2015-11-06 10:59:02 +01:00
Preamble.h Write fixed encoding to LyX file (bug #9178) 2015-02-14 10:45:13 +01:00
table.cpp Handle unknown table column specifiers (bug #9311) 2015-01-03 17:06:39 +01:00
tex2lyx.1in Fix encoding for copying LaTeX from clipboard 2013-11-11 21:52:14 +01:00
tex2lyx.cpp Write fixed encoding to LyX file (bug #9178) 2015-02-14 10:45:13 +01:00
tex2lyx.h Fix tex2lyx include output for roundtrip 2013-05-26 16:07:56 +02:00
text.cpp tex2lyx: Add a newline at the end of comment if not at the end of a paragraph. 2015-11-23 14:02:06 +01:00
TODO.txt tex2lyx: backport support for relative sizes and glue lengths 2014-12-04 00:48:27 +01:00