diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2011-09-08 16:48:21 +0200 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2011-09-17 12:57:56 +0200 |
| commit | 3205c382b9f896266fa8df90fe63c35228da91ba (patch) | |
| tree | 2756ba3ed9f5cb3c30fe363823f3a6794106b423 | |
| parent | f3cb1c742236923a7450f77ca1fd7607ec6703fe (diff) | |
Whitespace cleanup.
| -rw-r--r-- | src/elements.h | 2 | ||||
| -rw-r--r-- | src/generators/latex/text_g.cpp | 4 | ||||
| -rw-r--r-- | src/main.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/elements.h b/src/elements.h index de9ceb8..9142ea2 100644 --- a/src/elements.h +++ b/src/elements.h @@ -41,7 +41,7 @@ enum stattribute_t { struct stext_t; struct pstext_t; -typedef boost::variant<boost::recursive_wrapper<stext_t>, +typedef boost::variant<boost::recursive_wrapper<stext_t>, boost::recursive_wrapper<pstext_t>, stattribute_t, std::wstring> text_t; diff --git a/src/generators/latex/text_g.cpp b/src/generators/latex/text_g.cpp index cdebe9f..b9d013a 100644 --- a/src/generators/latex/text_g.cpp +++ b/src/generators/latex/text_g.cpp @@ -20,7 +20,7 @@ latex::text_g::text_g() : text_g::base_type(text_) { using ka::standard_wide::char_; text_ = stext_ | pstext_ | atom_ | ptext_; - + stext_ = &uint_(EMPH) << L"\\emph{" << +text_ << '}' | &uint_(SEMPH) << L"\\textit{\\emph{" << +text_ << L"}}" | &uint_(VSEMPH) << L"\\texttt{\\textit{\\emph{" << +text_ << L"}}}" @@ -34,7 +34,7 @@ latex::text_g::text_g() : text_g::base_type(text_) { atom_ = &uint_(NBSP) << '~' | &uint_(NEWLINE) << L"\\\\" << eol; - pstext_ = &uint_(LINK) << L"\\href{" << ptext_[_1 = ph::at_c<2>(_val)] + pstext_ = &uint_(LINK) << L"\\href{" << ptext_[_1 = ph::at_c<2>(_val)] << L"}{" << (+text_)[_1 = ph::at_c<1>(_val)] << '}'; ptext_ = +char_; diff --git a/src/main.cpp b/src/main.cpp index 6477e0f..e991af9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -57,7 +57,7 @@ int main(int argc, char** argv) { } wifstream ifile(variables["input"].as<string>().c_str()); - + if (ifile.fail()) { cerr << "mppdown: error while reading the file" << endl; return 1; |
