mutually annihilating double tags in the output HTML code

General comments and questions. Technical support.
Post Reply
Leopoldus
Posts: 120
Joined: Wed Jan 19, 2005 8:55 am

mutually annihilating double tags in the output HTML code

Post by Leopoldus »

When save Atlantis documents in HTML format, it quite often (although not every time) it adds to the output HTML code useless mutually annihilating tags, as, say the following:

Code: Select all

<b><i>sample<b><i></i></b>only</b></i>
Especially Atlantis likes to frame with such senseless tags diacritics and other non-ASCII symbols in the text. Also when a user copy the text from other application, say, MS Word or Firefox or other browser via Windows clipboard and paste it into Atlantis window and than edit it, Atlantis adds unneeded duplicated tags in those places, where user has added or changed some text.

Sometimes such unneeded extra tags increase the size of the output HTML document file by 10-20% and sometimes even 200 - 400%, that is about 3/4 of the output file text is taken by totally senseless tags. You can see the sample of such output code below.

Well, the main headache is not even the fact, that an output HTML file is much larger, that it should actually be. Please regard, that if you need to review and edit the source HTML code of your output document, it is quite difficult to do it due these trash tags.

Surely a user can remove these extra tags pairs manually in some plain text editor, say in Notepad, using "Search and Replace" function. At least you should replace the sequence </b><b> with nothing, than repeat the same operation for the pair </i><i>, than for the pait </u><u> and so on. But it will be nice, if Atlantis Word makes this routine task itself. Besides some cases are not so simple to repair them manually - see below for example tags

Code: Select all

l</b></font><font style="color&#58;maroon"><b>õ</b></font><font style="color&#58;maroon"><b>petamise t</b></font><font style="color&#58;maroon"><b>õ</b></font><font style="color&#58;maroon"><b>ttu 
=====================================

Code: Select all

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name=Generator content="Atlantis Word Processor 1.6.5.9, http&#58;//www.AtlantisWordProcessor.com">
<title>16</title>
<style>p&#123;text-align&#58;justify;margin-top&#58;12pt;margin-bottom&#58;0pt;font-family&#58;Verdana;font-size&#58;10pt&#125;</style>
</head>
<body>
<p><b>16.</b> Kolleegium leiab, et <b>v</b><b>&#262;µ</b><b>rgu</b><b>&#262;¼</b><b>henduse katkestamine tarbija v</b><b>&#262;µ</b><b>lgnevuse t</b><b>&#262;µ</b><b>ttu oli s</b><b>&#262;¼&#262;¼</b><b>distuses m</b><b>&#262;¤</b><b>rgitud ajal ja on ka praegu </b><b>&#262;µ</b><b>igusp</b><b>&#262;¤</b><b>rane </b><b>&#262;¼</b><b>ksnes ELTS </b><b>&#256;§</b><b>-s 90 s</b><b>&#262;¤</b><b>testatud alustel ja korras. Seega saab v</b><b>&#262;µ</b><b>rgu</b><b>&#262;¼</b><b>henduse katkestamist tingivaks v</b><b>&#262;µ</b><b>lgnevuseks olla vaid ELTS </b><b>&#256;§ </b><b>90 lg-s 1 nimetatud lepingust tulenev v</b><b>&#262;µ</b><b>lgnevus, mitte aga isiku muud v</b><b>&#262;µ</b><b>lgnevused. V</b><b>&#262;µ</b><b>rgu</b><b>&#262;¼</b><b>henduse katkestamise </b><b>&#262;µ</b><b>igus on seejuures </b><b>&#262;¼</b><b>ksnes v</b><b>&#262;µ</b><b>rguettev</b><b>&#262;µ</b><b>tjal, mitte kolmandatel isikutel.</b> V&#262;µrgu&#262;¼henduse katkestamisel tarbija v&#262;µlgnevuse t&#262;µttu tuleb j&#262;¤rgida ELTS &#256;§-s 90 ette n&#262;¤htud menetlust.</p>
<p><b>17.</b> Kriminaalasja uuel arutamisel tuleb kohtul v&#262;¤lja selgitada, millised &#262;µigussuhted eksisteerisid seoses Xxxxx 37-AA korteri elektrienergiaga varustamisega, ja sellest l&#262;¤htuvalt hinnata, kas O&#262;? K tegevus Xxxxx 37-AA korteri elektrivarustuse katkestamisel oli koosk&#262;µlas ELTS &#256;§-ga 90 v&#262;µi mitte. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><font style="color&#58;maroon"><b>Juhul kui ilmneb, et O</b></font><font style="color&#58;maroon"><b>&#262;? </b></font><font style="color&#58;maroon"><b>K tegevus Xxxxx 37-AA korteri elektrivarustuse katkestamisel oli </b></font><font style="color&#58;maroon"><b>&#262;µ</b></font><font style="color&#58;maroon"><b>igusvastane, tuleb kohtul KarS </b></font><font style="color&#58;maroon"><b>&#256;§</b></font><font style="color&#58;maroon"><b>-st 28 l</b></font><font style="color&#58;maroon"><b>&#262;¤</b></font><font style="color&#58;maroon"><b>htudes kontrollida, kas Xxxxx 37-AA korteri elektrivarustuse ebaseadusliku l</b></font><font style="color&#58;maroon"><b>&#262;µ</b></font><font style="color&#58;maroon"><b>petamise t</b></font><font style="color&#58;maroon"><b>&#262;µ</b></font><font style="color&#58;maroon"><b>ttu sattus P. Pahk h</b></font><font style="color&#58;maroon"><b>&#262;¤</b></font><font style="color&#58;maroon"><b>dakaitseseisundisse, kas tema tungimine tehnoruumi oli sobiv ja s</b></font><font style="color&#58;maroon"><b>&#262;¤&#262;¤</b></font><font style="color&#58;maroon"><b>stvaim vahend </b></font><font style="color&#58;maroon"><b>&#262;µ</b></font><font style="color&#58;maroon"><b>igusvastase r</b></font><font style="color&#58;maroon"><b>&#262;¼</b></font><font style="color&#58;maroon"><b>nde t</b></font><font style="color&#58;maroon"><b>&#262;µ</b></font><font style="color&#58;maroon"><b>rjumiseks ning kui P. Pahk </b></font><font style="color&#58;maroon"><b>&#262;¼</b></font><font style="color&#58;maroon"><b>letas objektiivselt h</b></font><font style="color&#58;maroon"><b>&#262;¤</b></font><font style="color&#58;maroon"><b>dakaitse piire, siis kas ta tegi seda kavatsetult v</b></font><font style="color&#58;maroon"><b>&#262;µ</b></font><font style="color&#58;maroon"><b>i otsese tahtlusega</b></font> &#40;KarS &#256;§ 28 kohaldamise eelduste kohta l&#262;¤hemalt vt nt Riigikohtu kriminaalkolleegiumi 25. m&#262;¤rtsi 2004. a otsus asjas nr <a href="http&#58;//www.nc.ee/?id=11&tekst=RK/3-1-1-17-04">3-1-1-17-04</a> ja 4. veebruari 2005. a otsus asjas nr <a href="http&#58;//www.nc.ee/?id=11&tekst=RK/3-1-1-111-04">3-1-1-111-04</a>&#41;.</p>
<p style="text-align&#58;left"><i>&#40;R</i><i>iigikohus kriminaalkolleegium </i><i>KOGU koosseisus </i><i>kohtuotsus<br>3-1-1-40-12<br>12. oktoober 2012</p>
<p style="text-align&#58;left;margin-top&#58;0pt">Kriminaalasi Priit Pahki s&#262;¼&#262;¼distuses KarS &#256;§ 266 lg 1 j&#262;¤rgi</p>
</html>
User avatar
admin
Site Admin
Posts: 2926
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

Yes, Atlantis might generate redundant HTML code. But in most cases, its amount is low.

Possibly there will be improvements to the "Save as HTML" module of Atlantis in the future. But I cannot say more about that at this time.
Post Reply