summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index e44f825..33562c8 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5851,6 +5851,7 @@ QCString convertToHtml(const char *s,bool keepEntities)
static GrowBuf growBuf;
growBuf.clear();
if (s==0) return "";
+ growBuf.addStr(getHtmlDirEmbedingChar(getTextDirByConfig(s)));
const char *p=s;
char c;
while ((c=*p++))
@@ -5892,11 +5893,13 @@ QCString convertToHtml(const char *s,bool keepEntities)
return growBuf.get();
}
-QCString convertToJSString(const char *s)
+QCString convertToJSString(const char *s, bool applyTextDir)
{
static GrowBuf growBuf;
growBuf.clear();
if (s==0) return "";
+ if (applyTextDir)
+ growBuf.addStr(getJsDirEmbedingChar(getTextDirByConfig(s)));
const char *p=s;
char c;
while ((c=*p++))