From 6639d786013aee76163e1a037f7563c9c6080f81 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 27 Dec 2010 17:58:36 +0000 Subject: [PATCH] Increase tex2lyx output format to 323. 323: Create newpage inset in new syntax git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37010 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/tex2lyx.h | 2 +- src/tex2lyx/text.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tex2lyx/tex2lyx.h b/src/tex2lyx/tex2lyx.h index 844677f5fc..c547cf328c 100644 --- a/src/tex2lyx/tex2lyx.h +++ b/src/tex2lyx/tex2lyx.h @@ -114,7 +114,7 @@ extern CommandMap known_math_environments; /// extern bool noweb_mode; /// LyX format that is created by tex2lyx -int const LYX_FORMAT = 322; +int const LYX_FORMAT = 323; /// path of the master .tex file extern std::string getMasterFilePath(); diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index ad9ae11bca..5b3f825a91 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -2747,7 +2747,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, t.cs() == "clearpage" || t.cs() == "cleardoublepage") { context.check_layout(os); - os << "\n\\" << t.cs() << "\n"; + begin_inset(os, "Newpage "); + os << t.cs(); + end_inset(os); skip_spaces_braces(p); } -- 2.39.5