single-line / multi-line-view

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
volki9
Posts: 3
Joined: Sat Feb 08, 2020 3:12 pm

single-line / multi-line-view

Post by volki9 »

Good day
As a newbie I need help
I am using Textpad 881 with Win-10-Pro 64 21H1.
TP-8 in the German-language-version
----------------
When I import/open a file in TP-8, I see it either in a single line view or in a multi line view (see picture attached). I have no control over how the file opens, it can be single- or multi-line view.

Question:-
How can I change a multi-line view to a single-line view?
------------------------
Multi-line-View (Example)
: <wpt lat="42.692290" lon="12.541860">
<ele>0.00</ele>
<time>2018-09-03T15:57:36Z</time>
<name>ACQUASPARTA.</name>
<cmt> </cmt>
<sym>Information</sym>
<extensions>
<gpxx:WaypointExtension>
<gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
<gpxx:Address>
<gpxx:StreetAddress>LOC CAMPAGNA, AREA COMUNALE FONTI AMERINO, &amp;AMP;AMP;LT;BR&amp;AMP;AMP;GT;SCHöNER SP, NUR ELEKTR. FEHLT; ES WAREN NOCH 3 CAMPER, SEHR RUHIG. DORF ZU FUß ERREICHBAR (500M) ENTLANG DER STRAßE, AUF DER KINDER ZUR SCHULE GEHEN. WANDERGEBIET IN DER NäHE.&amp;AMP;AMP;LT;BR&amp;AMP;AMP;GT;</gpxx:StreetAddress>
</gpxx:Address>
</gpxx:WaypointExtension>
</extensions>
</wpt>
----------------------------------------------
Single line view: everything in one line
-----------------------
volki
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Do you really mean everything on one line, or just the long lines like the StreetAddress in your example?

If you're referring to just long lines, you might be seeing the difference between word wrapping being on and off, which you can set via Configure > Word Wrap.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Or, for all documents in a document class,
Configure | Preferences | Document Classes | class | Word wrap long lines.

Perhaps some of your documents are in a class with word wrap on and others are in a class with word wrap off.
volki9
Posts: 3
Joined: Sat Feb 08, 2020 3:12 pm

Post by volki9 »

Thank you

By single line view I mean everything (in my example) between
: <wpt lat="42.692290" lon="12.541860">
and
</wpt>
------------------
I had to change TP from german to english first

When I choose Configure > Word Wrap. This doesn't change the preview to single line.
When I use Configure | Preferences | Document Classes | class | Word wrap long lines

I get to Document Classes, but then class is not present.
.----------------------------

I have now found out that if I save the file with another programme (GPS Utility) that TP-8 opens it in sigle-line mode.!
(Example-2)

<wpt lat="42.692290" lon="12.541860"><ele>0.000</ele><time>2018-09-03T15:57:36Z</time><name>ACQUASPARTA.</name><cmt>LOC CAMPAGNA, AREA COMUNALE FONTI AMERINO, &amp;AMP;AMP;AMP;LT;BR&amp;AMP;AMP;AMP;GT;SCHöNER SP, NUR ELEKTR. FEHLT; ES WAREN NOCH 3 CAMPER, SEHR RUHIG. DORF ZU FUß ERREICHBAR (500M) ENTLANG DER STRAßE, AUF DER KINDER ZUR SCHULE GEHEN. WANDERGEBIET IN DER NäHE.&amp;AMP;AMP;AMP;LT;BR&amp;AMP;AMP;AMP;GT;</cmt><sym>Information</sym><extensions><ctx:CreationTimeExtension><ctx:CreationTime>2018-09-03T15:57:36Z</ctx:CreationTime></ctx:CreationTimeExtension></extensions></wpt>

<wpt lat="40.901036" lon="16.847326"><ele>0.000</ele><time>2020-03-04T14:11:57Z</time><name>ACQUAVIVA DELLE FONTI -2 (FORNELLO)</name><cmt>SAPORI DEL SUD, SONNTAG ZU, IMMER ABENDS, VIA MONSIGNOR LAERA, TEL+39 339 205 6331 ;</cmt><sym>Information</sym><extensions><ctx:CreationTimeExtension><ctx:CreationTime>2020-03-04T14:11:57Z</ctx:CreationTime></ctx:CreationTimeExtension></extensions></wpt>
<wpt lat="40.900168" lon="16.840517"><ele>0.000</ele><time>2018-02-03T16:50:36Z</time><name>ACQUAVIVA DELLE FONTI-1 (FORNELLO)</name><cmt>MACELLERIA-ROSTICCERIA LA GRIGLIATA , DI MICHELE PASTOREDI, BIS SA, ABENDS VIA CIRO MENOTTI, 57, TEL +39 080 757677</cmt><sym>Information</sym><extensions><ctx:CreationTimeExtension><ctx:CreationTime>2018-02-03T16:50:36Z</ctx:CreationTime></ctx:CreationTimeExtension></extensions></wpt>

<wpt lat="46.524274" lon="8.603528"><ele>0.000</ele><time>2018-02-12T09:51:51Z</time><name>AIROLO (SüDL. GOTTHARD-TUNNEL-AUSGANG)</name><cmt>GROSSE PARKPLÄTZE AN DER SEILBAHNSTATION, ZUM ÜBERNACHTEN GEEIGNET, SEHR GUTE ALPKÄSEREI/RESTAURANT AUF DER ANDERN SEITE DER SEILBAHNSTATION. ALLE LOKALEN KÄSESORTEN UND REGIONALE SPEZIALITÄTEN</cmt><sym>Information</sym><extensions><ctx:CreationTimeExtension><ctx:CreationTime>2018-02-12T09:51:51Z</ctx:CreationTime></ctx:CreationTimeExtension></extensions></wpt>
-----------------------
volki
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Do you mean that in some cases each wpt element (from a <wpt> opening tag to its matching </wpt> closing tag) is on a single line, and in other cases each child element starts on a new line? If so, that can only be that the contents of those files are laid out differently.

In
Configure | Preferences | Document Classes
there is a list of document classes. By "class" I meant any class that your documents belong to.
volki9
Posts: 3
Joined: Sat Feb 08, 2020 3:12 pm

Post by volki9 »

Thanks
but I have now found a way around.

I first have to save this file in a certain programme, then it opens in TP-8, either Single Line or Multi Line. I can live with that.

mv
-----------------------
volki
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

It would seem that this other certain program is sometimes saving these files with wpt elements on single lines and sometimes with wpt elements on multiple lines.

TextPad is not doing his. It is not aware of XML structure and would therefore not be able to split or join lines in an XML-sensitive way, even if it wanted to.
Post Reply