diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2011-04-01 18:01:01 +0200 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2011-04-01 18:01:01 +0200 |
| commit | 1c5bf1893f960e73b389831af4a225c32ff1b132 (patch) | |
| tree | 7c4f1658840aae7222dba88bf946b89402312156 /src/generators/latex/paragraph_g.h | |
| parent | ba76e1b03a1b691e0220ed31de1fdd1b6a0f924d (diff) | |
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.
Diffstat (limited to 'src/generators/latex/paragraph_g.h')
| -rw-r--r-- | src/generators/latex/paragraph_g.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generators/latex/paragraph_g.h b/src/generators/latex/paragraph_g.h index 8cbb750..5546ffe 100644 --- a/src/generators/latex/paragraph_g.h +++ b/src/generators/latex/paragraph_g.h @@ -17,14 +17,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define _MPPDOWN_LATEX_PARAGRAPH_G #include <boost/spirit/include/karma.hpp> #include "../../elements.h" -#include "text_g.h" +#include "line_g.h" namespace ka = boost::spirit::karma; namespace latex { struct paragraph_g : ka::grammar<oiterator, paragraph_t()> { ka::rule<oiterator, paragraph_t()> paragraph_; - text_g text_; + line_g line_; paragraph_g(); }; |
