steve8x8 / geotoad

Geocaching query tool written in Ruby
https://buymeacoffee.com/steve8x8
Other
28 stars 8 forks source link

Long description display broken on Garmin #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(Reporting from user POV this time)

To reproduce: run a query on WID GC33E2D, output to "gpx" format, load onto 
Garmin Oregon 300 (latest firmware), try to read the long description. (It's 
archived now, but that doesn't matter for now.)
What should happen: The whole description text is visible, including the 
instructions how to determine the digits of the final coordinates.
What happens: Text is cut off at a very early point, with an incomplete HTML 
tag at the end.

Investigation shows that the "print" page (cdpf.aspx file) contains stuff like

                <div class="item">
                    <div class="item-header">
                        <h2>
                            Long Description</h2>
                    </div>
                    <div class="item-content">
                        <div class="UserSuppliedContent">
<div class="UserSuppliedContent">
<div class="UserSuppliedContent">
<p style="text-align: center;"><span id=
"ctl00_ContentBody_LongDescription"><span><span><span><span><strong>
<span style="font-size:18px;"><span style=
"font-family: times new roman,times,serif;"><span><span><span><span>
<span><span data-scayt_word="Als" data-scaytid=
"5">Als</span></span></span></span></span></span>
<span><span><span><span><span><span data-scayt_word="wir"
data-scaytid="6">wir</span></span></span></span></span></span>
<span><span><span><span><span><span data-scayt_word="eines"
data-scaytid="8">eines</span></span></span></span></span></span>
<span><span><span><span><span><span data-scayt_word="Tages"
data-scaytid="9">Tages</span></span></span></span></span></span>
<span><span><span><span><span><span data-scayt_word="hier"
data-scaytid="10">hier</span></span></span></span></span></span>
<span><span><span><span><span><span data-scayt_word="entlang"
data-scaytid="12">entlang</span></span></span></span></span></span>
<span><span><span><span><span><span data-scayt_word="kamen"

Note that for every word (average 5 characters) there are about 100 characters 
in the HTML code.
As a bonus, there are three "UserSuppliedContent" div tags.
This may be a result of thoughtless editing within a "smart" word processing 
program, I'll try to find out...

Removing all "span" tags from the description resolves the issue, and IMHO 
these tags aren't necessary in the given context.
This shrinks the gpx output from >40KB to sane 12KB, while text output is 
unaffected.

Any opinions?

Original issue reported on code.google.com by Steve8x8 on 6 Aug 2012 at 7:23

GoogleCodeExporter commented 9 years ago
Addressed by submit r1180 to branch

Original comment by Steve8x8 on 20 Aug 2012 at 6:49

GoogleCodeExporter commented 9 years ago
Merged into trunk.

Original comment by Steve8x8 on 4 Sep 2012 at 8:17

GoogleCodeExporter commented 9 years ago
Issue is supposed to be fixed in recent 3.16.2 release.

Original comment by Steve8x8 on 28 Sep 2012 at 11:26