mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
disabled compilation of cmark until it gets fixed
This commit is contained in:
parent
fbc4e4205d
commit
3272ee0719
3 changed files with 17 additions and 1 deletions
|
@ -38,9 +38,14 @@
|
|||
#include "util/imageutil.h"
|
||||
#include "util/rstime.h"
|
||||
|
||||
// #define USE_CMARK
|
||||
|
||||
#ifdef USE_CMARK
|
||||
//Include for CMark
|
||||
// This needs to be fixed: use system library if available, etc.
|
||||
#include <gui/../../../supportlibs/cmark/src/cmark.h>
|
||||
#include <gui/../../../supportlibs/cmark/src/node.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
@ -586,6 +591,7 @@ QString RsHtml::formatText(QTextDocument *textDocument, const QString &text, ulo
|
|||
// Save Space and Tab because doc loose it.
|
||||
formattedText=saveSpace(formattedText);
|
||||
|
||||
#ifdef USE_CMARK
|
||||
if (flag & RSHTML_FORMATTEXT_USE_CMARK) {
|
||||
// Transform html to plain text
|
||||
QTextBrowser textBrowser;
|
||||
|
@ -608,6 +614,7 @@ QString RsHtml::formatText(QTextDocument *textDocument, const QString &text, ulo
|
|||
textBrowser.setHtml(formattedText);
|
||||
formattedText=textBrowser.toHtml();
|
||||
}
|
||||
#endif
|
||||
|
||||
QString errorMsg; int errorLine; int errorColumn;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue