Small html cleanup
This commit is contained in:
parent
c102ebb6da
commit
31b479e9f6
27 changed files with 330 additions and 252 deletions
|
@ -16,7 +16,7 @@ TEST_CASE(TestMarkdownParser, "web")
|
|||
auto html = parser.getHtml();
|
||||
|
||||
HtmlWriter writer;
|
||||
const auto html_string = writer.ToString(html);
|
||||
const auto html_string = writer.toString(html.get());
|
||||
|
||||
File html_file(TestUtils::getTestOutputDir() / "TestMarkdownParserOut.html");
|
||||
html_file.writeText(html_string);
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include "XmlParser.h"
|
||||
#include "XmlWriter.h"
|
||||
#include "XmlDocument.h"
|
||||
|
||||
#include "File.h"
|
||||
|
||||
#include "TestFramework.h"
|
||||
|
@ -18,12 +20,12 @@ TEST_CASE(TestXmlParser, "web")
|
|||
{
|
||||
std::string line;
|
||||
std::getline(xml_file, line);
|
||||
parser.ProcessLine(line);
|
||||
parser.processLine(line);
|
||||
}
|
||||
xml_file.close();
|
||||
|
||||
XmlWriter writer;
|
||||
auto content = writer.ToString(parser.GetDocument().get());
|
||||
auto content = writer.toString(parser.getDocument().get());
|
||||
|
||||
auto outFile = std::make_unique<File>(TestUtils::getTestOutputDir() / "test_out.xml");
|
||||
outFile->writeText(content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue