You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
this is not actually an bug but a feature proposal, which I already
included in the source code for myself.
Upon using geotoad to save the list of geocaches to a GPX file and
importing this file into both GSAK (Geocaching Swiss Army Knife) and
CacheMate (PPC Version), I noticed the inconvinient behaviour that the
long-description tags get stripped of any HTML codes (as well as new lines,
etc.).
At least with the above mentioned programs, this is not necessary and
reduces readability, as they both support HTML tags inside the description
tags (when properly masked, i.e. '>' ==> '<' etc.)
To fix this, I modified the following files:
* lib/details.rb
- line 346: cleanHTML(longdesc) ==> longdesc
* lib/output.rb
- line 268:
# fix CGI.escapeHTML stupidity
if text =~ /\&\;([\#\w]+\;)/
text.gsub!(/\&\;([\#\w]+\;)/, "&#{$1}")
debug "Post-ampersand fix: #{text}"
end
==>
# fix CGI.escapeHTML stupidity
#if text =~ /\&\;([\#\w]+\;)/
# text.gsub!(/\&\;([\#\w]+\;)/, "&#{$1}")
# debug "Post-ampersand fix: #{text}"
#end
The last fix is necessary, because must indeed be substituted with
&nbsp; otherwise GSAK and other programs will complain about non XML
conformity.
Another thing, which I not explicitly listed here, is the "\r\n"
problematic. The thing is, that in Microsoft OS's, ruby seems to translate
this to two newlines "\n", which is not intended and leads to GPX files
where every second is line empty.
Maybe you find the time to address this,
Cheers, Sethur
Original issue reported on code.google.com by Seth...@gmx.net on 31 Mar 2009 at 9:02
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
Seth...@gmx.net
on 31 Mar 2009 at 9:02The text was updated successfully, but these errors were encountered: