diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2011-02-20 14:50:02 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2011-02-20 14:50:02 +0100 |
| commit | 02f387c216ca27abd3cad5f7d9043abd9e7ae168 (patch) | |
| tree | d35c0f1328965482866b1f2c6bb797c24fc52f32 /src/generators/latex/text_g.cpp | |
| parent | 7029cc1be25626d86cb62a991f06816fe757eafd (diff) | |
Unbreakable space support added.
Diffstat (limited to 'src/generators/latex/text_g.cpp')
| -rw-r--r-- | src/generators/latex/text_g.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/generators/latex/text_g.cpp b/src/generators/latex/text_g.cpp index 90471ae..e65d80d 100644 --- a/src/generators/latex/text_g.cpp +++ b/src/generators/latex/text_g.cpp @@ -19,7 +19,7 @@ latex::text_g::text_g() : text_g::base_type(text_) { using namespace ka; using ka::standard_wide::char_; - text_ = stext_ | pstext_ | ptext_; + text_ = stext_ | pstext_ | atom_ | ptext_; stext_ = &uint_(EMPH) << L"\\emph{" << +text_ << '}' | &uint_(SEMPH) << L"\\textit{\\emph{" << +text_ << L"}}" @@ -32,6 +32,8 @@ latex::text_g::text_g() : text_g::base_type(text_) { | &uint_(QUOTE) << L"``" << +text_ << L"''" | &uint_(SUB) << L"_{" << +text_ << '}'; + atom_ = &uint_(NBSP) << '~'; + pstext_ = &uint_(LINK) << L"\\href{" << ptext_[_1 = ph::at_c<2>(_val)] << L"}{" << (+text_)[_1 = ph::at_c<1>(_val)] << '}'; |
