From f71cfa220dbbf8fd9b92bffd175b635dd4cab170 Mon Sep 17 00:00:00 2001 From: Cyprien de Saint Guilhem Date: Mon, 7 Oct 2024 17:59:17 +0200 Subject: [PATCH] Create test files for moving sectioning commands to their own line --- src/tests.rs | 1 + tests/source/sections.tex | 3 +++ tests/target/sections.tex | 6 ++++++ 3 files changed, 10 insertions(+) create mode 100644 tests/source/sections.tex create mode 100644 tests/target/sections.tex diff --git a/src/tests.rs b/src/tests.rs index 43e1e5f..89cae40 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -100,6 +100,7 @@ fn test_short() { //"puthesis.cls", //"quiver.sty", //"readme.tex", + // "sections.tex", //"short_document.tex", //"tikz_network.sty", //"unicode.tex", diff --git a/tests/source/sections.tex b/tests/source/sections.tex new file mode 100644 index 0000000..7472abb --- /dev/null +++ b/tests/source/sections.tex @@ -0,0 +1,3 @@ +\section{Section test} + +Sectioning commands should be moved to their own line.\subsection{Result} Even if there are more than one.\subsection{Result 2} diff --git a/tests/target/sections.tex b/tests/target/sections.tex new file mode 100644 index 0000000..be975ec --- /dev/null +++ b/tests/target/sections.tex @@ -0,0 +1,6 @@ +\section{Section test} + +Sectioning commands should be moved to their own line. +\subsection{Result} +Even if there are more than one. +\subsection{Result 2}