GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




  question

Click to view RSS...
Author Why is in html source code   and space between some sentences?
Posted Wednesday, October 19, 2011 - Post #29156
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
Hello,

I have two questions.

1. Why is in html source code   and space between some sentences?

Ivana&#39;s father is &lt;Unknown&gt; and her mother was <a href='Ledvinkova-Marie-ind00430.htm' onclick='hidePopUpFrame("");' target='detail'>Marie (Ledvinková)</a>.&nbsp; Her maternal grandfather is &lt;Unknown&gt; and her maternal grandmother was <a href='Rybova-Frantiska-ind00428.htm' onclick='hidePopUpFrame("");' target='detail'>Františka Rybová (Albrechtová)</a>.&nbsp; She is an only child.

Then are two ugly spaces in output. Where is &nbsp; entity defined and how to remove it?


2. How to add &nbsp; entity to the output? I want to join some parts of the output with &nbsp; (for example dates - 1.&nbsp;ledna.1900, prepositions - v&nbsp;kostele). Is  possible to add this entity to the xml tags in dictionary or how to do this?


Thanks





Tags:

Edited: Wednesday, October 19, 2011 by GenoProSupport
Posted Wednesday, October 19, 2011 - Post #29158
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 11:01 PM
Posts: 4,887, Visits: 22,764
GenoPro encodes two spaces as one &nbsp; and the other as a regular space, otherwise the two spaces are consolidated into one space.

If you wish to &nbsp; in the output, simply add &amp;nbsp;
Posted Wednesday, October 19, 2011 - Post #29164
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
2 does not work: <FmtYMD>&#32;[|asi |před datem |po datu ]d.&amp;nbsp;MMMM&amp;nbsp;yyyy</FmtYMD> and the output looks like this 24.&nbsp;března&nbsp;1834 with source 24.&amp;nbsp;března&amp;nbsp;1834

What is wrong?


Edited: Wednesday, October 19, 2011 by powery
Posted Thursday, October 20, 2011 - Post #29171
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 58 minutes ago
Posts: 3,347, Visits: 25,639
HTML named entities are not good in XML. Try &#160; instead of &amp;nbsp;


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Thursday, October 20, 2011 - Post #29172
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 11:01 PM
Posts: 4,887, Visits: 22,764
Thank you Ron!
Posted Thursday, October 20, 2011 - Post #29175
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
I have <FmtYMD>&#32;[|asi |před datem |po datu ]d.&#160;MMMM&#160;yyyy</FmtYMD> in <FmtDateNarrative> and still no &nbsp;
Posted Friday, October 21, 2011 - Post #29176
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 58 minutes ago
Posts: 3,347, Visits: 25,639
When the tag is read from the Dictionary &#160; gets converted to a hard-coded non-breaking space character, in the same way &#32; gets converted to a leading space (a simple leading space would be stripped out, hence the numberic entity is used).

An so the resulting HTML contains the non-breaking space itself, not the HTML entity &nbsp; but the effect should be the same.  I have tested it and if for example you resize a generated page in your browser the date parts stay together on a line. 


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Friday, October 21, 2011 - Post #29177
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Wednesday, June 2, 2021
Posts: 220, Visits: 14,736
Yes, that's it. Many thanks for explanation.


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse