X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biawebdocument.hpp;h=65005dd2a4e2ad3e21cb1813d6006306f86fdd17;hp=3fc15e1a2771480f8df3729daf5b5f573e4681a9;hb=44d5fb1ff24147859c5f198dd47f6956ec5fea51;hpb=a302a25538bc69491c4844ef065c6b50e098387a diff --git a/biawebdocument.hpp b/biawebdocument.hpp index 3fc15e1..65005dd 100644 --- a/biawebdocument.hpp +++ b/biawebdocument.hpp @@ -182,10 +182,9 @@ namespace biaweb { this->mdate = this->cdate; // read the rest of contents std::string line; - std::getline (infile, line); while (! infile.eof ()) { - contents.append (line + "\n"); std::getline (infile, line); + contents.append (line + "\n"); } this->set_markdown_content (contents); }