Separated the strings used for document tree generation from code
[biaweb2.git] / biawebdocument.hpp
index 3fc15e1..65005dd 100644 (file)
@@ -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);
     }