diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2011-02-20 15:02:16 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2011-02-20 15:02:16 +0100 |
| commit | 7acf15c1f0623f157e6abdf4a9bff5b050add967 (patch) | |
| tree | d9d2dc69793c0a2e0f842228fdd776bd76767c69 /src/parser/text_p.cpp | |
| parent | 02f387c216ca27abd3cad5f7d9043abd9e7ae168 (diff) | |
Forced line break support added.
Diffstat (limited to 'src/parser/text_p.cpp')
| -rw-r--r-- | src/parser/text_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp index f833743..a632d97 100644 --- a/src/parser/text_p.cpp +++ b/src/parser/text_p.cpp @@ -37,7 +37,7 @@ text_p::text_p() : text_p::base_type(text_) { pstext_ = lit('[') >> attr(LINK) >> +text_(val(L"]")) >> ']' >> lit('(') >> ptext_(val(L")")) >> ')'; - atom_ = lit(L"\\ ") >> attr(NBSP); + atom_ = lit(L"\\ ") >> attr(NBSP) | lit('\\') >> eol >> attr(NEWLINE); ptext_ = +(echar_ | rchar_(_r1)); echar_ = lit('\\') >> ~char_(' '); |
