computerline1z / okapi

Automatically exported from code.google.com/p/okapi
0 stars 0 forks source link

Duplicated extra code in HTML filter output #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In a ASP file with <%...%> tags there are cases where we get duplicated output:

For example the input:

"<li><a href="link1.asp" <% If strPage = "link2.asp" Then %> class="current" 
<%End If%> >Pay My Visa Fee</a></li>"

is written back:

"<li><a href="link1.asp" <% If strPage = "link2.asp" Then %> class="current" 
<%End If%> ><% If strPage = "link2.asp" Then %><%End If%>Pay My Visa 
Fee</a></li>"

It looks like an inline code is duplicated? Or a problem with references? or 
something twice added to the skeleton?

The XLIFF output show just one reference to a document-part, but it also merges 
the duplicated code.

I've used a simple re-write to reproduce the issue.
-ys

Original issue reported on code.google.com by yves.sav...@gmail.com on 15 Mar 2011 at 10:14

Attachments:

GoogleCodeExporter commented 9 years ago
It looks like there are two Document-parts that get generated: one with the 
reference to the <a link> and then one with just the <%...%> part that gets 
duplicated.
-ys

Original comment by yves.sav...@gmail.com on 15 Mar 2011 at 10:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
changed to enhancement - we don't officially support asp/jsp tagged formats 
with the html filter 

Original comment by jhargrav...@gmail.com on 15 Mar 2011 at 10:56

GoogleCodeExporter commented 9 years ago
Actually this already in the Issue list.
So just noting the action item for the teleconference: Jim to try to handle the 
case in the AbstractMarkup filter.

Original comment by yves.sav...@gmail.com on 5 May 2011 at 4:00