turn <p> into \n\n
This commit is contained in:
parent
7fad892ad7
commit
a621d29b9e
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.5.4
|
VERSION 0.5.5
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ std::vector<string> parse_website(const string &xml)
|
||||||
unescape_html(str);
|
unescape_html(str);
|
||||||
|
|
||||||
// Try to turn the HTML into human-readable text
|
// Try to turn the HTML into human-readable text
|
||||||
std::regex reparagraph("</p><p>");
|
std::regex reparagraph("<p>");
|
||||||
std::regex recdata1("<!\\[CDATA\\[");
|
std::regex recdata1("<!\\[CDATA\\[");
|
||||||
std::regex recdata2("\\]\\]>");
|
std::regex recdata2("\\]\\]>");
|
||||||
std::regex restrip("<[^>]*>");
|
std::regex restrip("<[^>]*>");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user