What's wrong with this markup?

15 views
Skip to first unread message

Zak

unread,
Oct 30, 2011, 1:49:36 PM10/30/11
to shpaml
(note: I already have the double pipe patch from Steve here
https://groups.google.com/group/shpaml/browse_thread/thread/c6f5c620922ae8cf)

From this:

li > a href="../create"
span.label | New Shirt > .vr ||

I should be getting this:

<li><a href="../create">
<span class="label">New Shirt</span><div class="vr"></div>
</a></li>

But instead I get:

<li>a href="../create"</li>
<span | New Shirt class="label"><div class="vr"></div></span>

What is going wrong?

Steve Howell

unread,
Oct 30, 2011, 3:00:26 PM10/30/11
to shpaml
At first glance, it looks like you may be using tabs, instead of
spaces. Try converting tabs to spaces, and see if the problem goes
away.

On Oct 30, 10:49 am, Zak <zisland...@gmail.com> wrote:
> (note: I already have the double pipe patch from Steve herehttps://groups.google.com/group/shpaml/browse_thread/thread/c6f5c6209...)

Zak

unread,
Oct 30, 2011, 11:55:23 PM10/30/11
to shpaml
Hey Steve -

I did have tabs instead of spaces, and they were causing a problem,
thank you. However after fixing the tabs, the problem persisted. I
played around with it some more and I've come to the conclusion that
SHPAML doesn't like inline nesting of self-closing tabs. Using
multiple > seems to confuse it a bit. So I'm just putting stuff on
seperate lines nows.

I'm really like SHPAML, the syntax is awesome. I want to start
recommending it to people, but I can't until the lack of syntax for
empty tags is fixed.

As such, I'd like to make a proposal: Your empty tag patch be merged
into the main SHPAML branch. I've been using it and it appears to work
just fine. It really addresses a signifigant omission in the code.

Steve Howell

unread,
Nov 2, 2011, 3:11:43 PM11/2/11
to shp...@googlegroups.com
Hi Zak,

Shpaml is in a bit of flux now.  I am only providing email support at this time.  Is James still subscribed?  He was in the process of creating a new site, but it's possible that took a back burner to other projects.

Since shpaml is really just a single file, you can pretty easily distribute the patched version to your friends.


From: Zak <zisla...@gmail.com>
To: shpaml <shp...@googlegroups.com>
Sent: Sunday, October 30, 2011 8:55 PM
Subject: Re: What's wrong with this markup?

James Robert

unread,
Nov 2, 2011, 4:43:14 PM11/2/11
to shp...@googlegroups.com
I'm still here, but as you suspected: other things have pulled me away from getting more docs up :/
Reply all
Reply to author
Forward
0 new messages