projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7805a0d
)
[cnp_helper] add '&' char to escape char
author
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Thu, 9 Jun 2011 09:11:02 +0000
(18:11 +0900)
committer
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Thu, 9 Jun 2011 10:03:22 +0000
(19:03 +0900)
Change-Id: Ie0a66cd6b7fe6930d091d105f50bdd0c5c391c21
src/lib/elm_cnp_helper.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_cnp_helper.c
b/src/lib/elm_cnp_helper.c
index
9fbde12
..
b79f112
100644
(file)
--- a/
src/lib/elm_cnp_helper.c
+++ b/
src/lib/elm_cnp_helper.c
@@
-2085,6
+2085,7
@@
mark_up(const char *start, int inlen, int *lenp)
{
if (*p == escapes[i].value)
{
+ if (!iscntrl(escapes[i].value)) l++;
l += strlen(escapes[i].escape);
break;
}
@@
-2101,6
+2102,7
@@
mark_up(const char *start, int inlen, int *lenp)
{
if (*p == escapes[i].value)
{
+ if (!iscntrl(escapes[i].value)) *q++ = '&';
strcpy(q, escapes[i].escape);
q += strlen(escapes[i].escape);
p ++;