Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
2c0cd6d2
Commit
2c0cd6d2
authored
Aug 27, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert, html XMP tag is changed to PRE in class documentation
parent
54c6c256
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
31 deletions
+60
-31
src/exe/co_convert/src/cnv_readsrc.cpp
src/exe/co_convert/src/cnv_readsrc.cpp
+34
-5
src/exe/co_convert/src/cnv_wbltohtml.cpp
src/exe/co_convert/src/cnv_wbltohtml.cpp
+26
-26
No files found.
src/exe/co_convert/src/cnv_readsrc.cpp
View file @
2c0cd6d2
...
...
@@ -171,7 +171,7 @@ filename << endl <<
"</TITLE>"
<<
endl
<<
"</HEAD>"
<<
endl
<<
"<BODY BGCOLOR=
\"
white
\"
>"
<<
endl
<<
"<CODE><
XMP
>"
<<
endl
;
"<CODE><
PRE
>"
<<
endl
;
return
1
;
}
...
...
@@ -179,7 +179,7 @@ filename << endl <<
int
CnvReadSrc
::
html_close
()
{
fp_src_html
<<
"</
XMP
></CODE>"
<<
endl
<<
"</
PRE
></CODE>"
<<
endl
<<
"</BODY>"
<<
endl
<<
"</HTML>"
<<
endl
;
fp_src_html
.
close
();
...
...
@@ -189,7 +189,36 @@ int CnvReadSrc::html_close()
int
CnvReadSrc
::
html_line
(
char
*
line
)
{
fp_src_html
<<
line
<<
endl
;
char
hline
[
1000
];
char
*
s
=
line
;
char
*
t
=
hline
;
for
(
s
=
line
;
*
s
;
s
++
)
{
switch
(
*
s
)
{
case
'<'
:
strcpy
(
t
,
"<"
);
t
+=
5
;
break
;
case
'>'
:
strcpy
(
t
,
">"
);
t
+=
5
;
break
;
case
'"'
:
strcpy
(
t
,
"""
);
t
+=
5
;
break
;
case
'&'
:
strcpy
(
t
,
"&"
);
t
+=
5
;
break
;
default:
*
t
=
*
s
;
t
++
;
}
}
*
t
=
0
;
fp_src_html
<<
hline
<<
endl
;
return
1
;
}
...
...
@@ -197,10 +226,10 @@ int CnvReadSrc::html_line( char *line)
int
CnvReadSrc
::
html_aref
()
{
fp_src_html
<<
"</
XMP
></CODE>"
<<
endl
<<
"</
PRE
></CODE>"
<<
endl
<<
"<HR><BR>"
<<
endl
<<
"<A NAME=
\"
"
<<
src_aref
<<
"
\"
><H1>"
<<
src_aref_text
<<
"</H1></A>"
<<
endl
<<
"<HR><CODE><
XMP
>"
<<
endl
;
"<HR><CODE><
PRE
>"
<<
endl
;
return
1
;
}
...
...
src/exe/co_convert/src/cnv_wbltohtml.cpp
View file @
2c0cd6d2
...
...
@@ -623,7 +623,7 @@ endl <<
html_clf
->
f
<<
"<BR><DT><B>"
<<
Lng
::
translate
(
"Description"
)
<<
"</B><DT><BR>"
<<
endl
<<
"</DL><DIV ID=
\"
description
\"
><
XMP
>"
<<
endl
;
"</DL><DIV ID=
\"
description
\"
><
PRE
>"
<<
endl
;
if
(
ctx
->
rw
->
doc_fresh
)
{
for
(
i
=
0
;
i
<
ctx
->
rw
->
doc_cnt
;
i
++
)
{
...
...
@@ -632,16 +632,16 @@ endl <<
char
imagefile
[
80
];
ctx
->
remove_spaces
(
txt
+
6
,
imagefile
);
html_clf
->
f
<<
"</
XMP><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@b"
,
2
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><H3>"
<<
txt
+
3
<<
"</H3><BR><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><H3>"
<<
txt
+
3
<<
"</H3><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><H4>"
<<
txt
+
3
<<
"</H4><BR><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><H4>"
<<
txt
+
3
<<
"</H4><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@i"
,
2
)
==
0
)
{
html_clf
->
f
<<
txt
+
2
<<
endl
;
...
...
@@ -651,7 +651,7 @@ endl <<
}
}
html_clf
->
f
<<
"</
XMP
>"
<<
endl
;
"</
PRE
>"
<<
endl
;
for
(
i
=
0
;
i
<
ctx
->
rw
->
doc_xlink_cnt
;
i
++
)
{
html_clf
->
f
<<
...
...
@@ -916,7 +916,7 @@ int CnvWblToHtml::attribute_exec()
continue
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@b"
,
2
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><XMP
><BR>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><PRE
><BR>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
html_clf
->
f
<<
"<H3>"
<<
txt
+
3
<<
"</H3><BR>"
<<
endl
;
...
...
@@ -981,7 +981,7 @@ int CnvWblToHtml::attribute_exec()
fp_tmp
<<
"<BR>"
<<
endl
<<
"<CODE><B>"
<<
Lng
::
translate
(
"Description"
)
<<
"</B></CODE><DT></DL>"
<<
endl
<<
"<DIV ID=
\"
description
\"
><
XMP
>"
<<
endl
;
"<DIV ID=
\"
description
\"
><
PRE
>"
<<
endl
;
if
(
ctx
->
rw
->
doc_fresh
)
{
for
(
i
=
0
;
i
<
ctx
->
rw
->
doc_cnt
;
i
++
)
{
...
...
@@ -990,23 +990,23 @@ int CnvWblToHtml::attribute_exec()
char
imagefile
[
80
];
ctx
->
remove_spaces
(
txt
+
6
,
imagefile
);
fp_tmp
<<
"</
XMP><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@b"
,
2
)
==
0
)
{
fp_tmp
<<
"</
XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
fp_tmp
<<
"</
XMP><H3>"
<<
txt
+
3
<<
"</H3><BR><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><H3>"
<<
txt
+
3
<<
"</H3><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
fp_tmp
<<
"</
XMP><H4>"
<<
txt
+
3
<<
"</H4><BR><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><H4>"
<<
txt
+
3
<<
"</H4><BR><PRE
>"
<<
endl
;
}
else
fp_tmp
<<
ctx
->
rw
->
doc_text
[
i
]
<<
endl
;
}
}
fp_tmp
<<
"</
XMP
></DIV>"
<<
endl
;
"</
PRE
></DIV>"
<<
endl
;
return
1
;
}
...
...
@@ -1040,7 +1040,7 @@ int CnvWblToHtml::bit_exec()
continue
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@b"
,
2
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><XMP
><BR>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><PRE
><BR>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
html_clf
->
f
<<
"<H3>"
<<
txt
+
3
<<
"</H3><BR>"
<<
endl
;
...
...
@@ -1077,7 +1077,7 @@ int CnvWblToHtml::bit_exec()
fp_tmp
<<
"<BR>"
<<
endl
<<
"<CODE><B>Description</B></CODE><DT></DL>"
<<
endl
<<
"<DIV ID=
\"
description
\"
><
XMP
>"
<<
endl
;
"<DIV ID=
\"
description
\"
><
PRE
>"
<<
endl
;
if
(
ctx
->
rw
->
doc_fresh
)
{
for
(
i
=
0
;
i
<
ctx
->
rw
->
doc_cnt
;
i
++
)
{
...
...
@@ -1086,23 +1086,23 @@ int CnvWblToHtml::bit_exec()
char
imagefile
[
80
];
ctx
->
remove_spaces
(
txt
+
6
,
imagefile
);
fp_tmp
<<
"</
XMP><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@b"
,
2
)
==
0
)
{
fp_tmp
<<
"</
XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
fp_tmp
<<
"</
XMP><H3>"
<<
txt
+
3
<<
"</H3><BR><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><H3>"
<<
txt
+
3
<<
"</H3><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
fp_tmp
<<
"</
XMP><H4>"
<<
txt
+
3
<<
"</H4><BR><XMP
>"
<<
endl
;
fp_tmp
<<
"</
PRE><H4>"
<<
txt
+
3
<<
"</H4><BR><PRE
>"
<<
endl
;
}
else
fp_tmp
<<
ctx
->
rw
->
doc_text
[
i
]
<<
endl
;
}
}
fp_tmp
<<
"</
XMP
></DIV>"
<<
endl
;
"</
PRE
></DIV>"
<<
endl
;
return
1
;
}
...
...
@@ -1261,7 +1261,7 @@ endl <<
html_clf
->
f
<<
"<BR><DT><B>Description</B><DT><BR>"
<<
endl
<<
"</DL><DIV ID=
\"
description
\"
><
XMP
>"
<<
endl
;
"</DL><DIV ID=
\"
description
\"
><
PRE
>"
<<
endl
;
if
(
ctx
->
rw
->
doc_fresh
)
{
for
(
i
=
0
;
i
<
ctx
->
rw
->
doc_cnt
;
i
++
)
{
...
...
@@ -1270,23 +1270,23 @@ endl <<
char
imagefile
[
80
];
ctx
->
remove_spaces
(
txt
+
6
,
imagefile
);
html_clf
->
f
<<
"</
XMP><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@b"
,
2
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><H3>"
<<
txt
+
3
<<
"</H3><BR><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><H3>"
<<
txt
+
3
<<
"</H3><BR><PRE
>"
<<
endl
;
}
else
if
(
strncmp
(
CnvCtx
::
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
html_clf
->
f
<<
"</
XMP><H4>"
<<
txt
+
3
<<
"</H4><BR><XMP
>"
<<
endl
;
html_clf
->
f
<<
"</
PRE><H4>"
<<
txt
+
3
<<
"</H4><BR><PRE
>"
<<
endl
;
}
else
html_clf
->
f
<<
ctx
->
rw
->
doc_text
[
i
]
<<
endl
;
}
}
html_clf
->
f
<<
"</
XMP
></DIV>"
<<
endl
;
"</
PRE
></DIV>"
<<
endl
;
for
(
i
=
0
;
i
<
ctx
->
rw
->
doc_link_cnt
;
i
++
)
{
html_clf
->
f
<<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment