From 1c5bf1893f960e73b389831af4a225c32ff1b132 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Fri, 1 Apr 2011 18:01:01 +0200 Subject: Line element added, plus a lot of good stuff. This element is another milestone on the road to awesome new elements. Besides, it was necessary to add this element if I wanted to implement comment lines someday. I also added some minor changes in the way mppdown handles newline characters: they are now really expected, throwing an exception if absent, and a newline character is now expected after every paragraph. This newline character is then rendered back by the LaTeX generator, hence following the proper LaTeX syntax regarding paragraphs. --- src/parser/paragraph_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser/paragraph_p.h') diff --git a/src/parser/paragraph_p.h b/src/parser/paragraph_p.h index 7409b52..f7f1f56 100644 --- a/src/parser/paragraph_p.h +++ b/src/parser/paragraph_p.h @@ -17,14 +17,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define _MPPDOWN_PARAGRAPH_P #include #include "../elements.h" -#include "text_p.h" +#include "line_p.h" namespace qi = boost::spirit::qi; namespace ph = boost::phoenix; struct paragraph_p : qi::grammar { qi::rule paragraph_; - text_p text_; + line_p line_; paragraph_p(); }; -- cgit v1.2.3-70-g09d2