[uf-discuss] X2V, hCard, FN, and "\n" question

brian suda brian.suda at gmail.com
Tue Apr 18 12:16:47 PDT 2006


It is probably a parser issue. Do you have a link to the source document?

X2V does try to honor whitespace for some properties, so it will add
newlines and some additional markup such as * for bullets. Without
seeing the source document to know if you have a 'return' character
between the <span class="family-name"> and the <span class="fn"> it is
difficult to pin down where/if there is a problem.

thanks,
-brian suda


Faust wrote:
> Hi,
>
> It appears that when I collapse the "N", "FN", and "URL" properties to
> a single class attribute, X2V puts a leading "\n" on the "FN" property
> of the vCard.
>
> When given this:
>
>> <h2 class="name"><a class="n fn url"
>> href="http://music.luther.edu/new/faculty/arnold_craig.html"><span
>> class="family-name">Arnold</span>, <span
>> class="given-name">Craig</span></a></h2>
>
> X2V produces this:
>
>> N;LANGUAGE=en;CHARSET=UTF-8:Arnold;Craig;;;
>> FN;LANGUAGE=en;CHARSET=UTF-8:\nArnold, Craig
>
> I attempted various arrangements of "n", "fn", "url" classes but could
> not get rid of the extra "\n" in the FN in the vCard.. When I  moved
> the "FN" class to it's own span like this:
>
>> <h2 class="name"><a class="n url"
>> href="http://music.luther.edu/new/faculty/arnold_craig.html"><span
>> class="fn"><span class="family-name">Arnold</span>, <span
>> class="given-name">Craig</span></span></a></h2>
>
> X2V produced the desired output:
>
>> N;LANGUAGE=en;CHARSET=UTF-8:Arnold;Craig;;;
>> FN;LANGUAGE=en;CHARSET=UTF-8:Arnold, Craig
>
> Is this a parser or mark-up issue?
>
>
> Thank in advance,
>
> Faust
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>



More information about the microformats-discuss mailing list