From 3205c382b9f896266fa8df90fe63c35228da91ba Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Thu, 8 Sep 2011 16:48:21 +0200 Subject: Whitespace cleanup. --- src/elements.h | 2 +- src/generators/latex/text_g.cpp | 4 ++-- 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, +typedef boost::variant, boost::recursive_wrapper, 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().c_str()); - + if (ifile.fail()) { cerr << "mppdown: error while reading the file" << endl; return 1; -- cgit v1.2.3-70-g09d2