Start word immediately after end tag

17 views
Skip to first unread message

Ram Rachum

unread,
Feb 6, 2014, 1:14:47 PM2/6/14
to shp...@googlegroups.com
Hi guys,

Say I want to generate this HTML using Shpaml:

    <a href='whatever'>Hello</a>, world!

How would I do it? The important part is that there's no space between the o and the comma. Is it possible using Shpaml? How?


Thanks,
Ram.

Steve Howell

unread,
Feb 6, 2014, 1:44:33 PM2/6/14
to shp...@googlegroups.com
You can just use raw HTML for that case.  The preprocessor will let it through fine.

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "shpaml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shpaml+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ram Rachum

unread,
Feb 6, 2014, 1:48:30 PM2/6/14
to shp...@googlegroups.com
So if I want to have a character immediately after the end tag, I have to send HTML, no way to do it with normal Shpaml?


--
You received this message because you are subscribed to a topic in the Google Groups "shpaml" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shpaml/EN6n6PN8_b0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shpaml+un...@googlegroups.com.

James Robert

unread,
Feb 6, 2014, 1:50:45 PM2/6/14
to shp...@googlegroups.com
That's correct. Shpaml saves you a lot of typing and manual matching of closing tags, but sometimes you still need to use raw html.

Ram Rachum

unread,
Feb 6, 2014, 1:52:31 PM2/6/14
to shp...@googlegroups.com
Maybe we could figure out a syntax for this? One idea: If there are no empty lines between two lines, there will be no space between the tags.

Steve Howell

unread,
Feb 6, 2014, 2:41:15 PM2/6/14
to shp...@googlegroups.com
For this kind of stuff, it's hard to come up with a better syntax than HTML itself.  HTML is overly verbose for lots of situations, but it's well suited for small inline stuff like your example and for bold/italic tags.

Ram Rachum

unread,
Feb 9, 2014, 3:57:17 PM2/9/14
to shp...@googlegroups.com
After some more work with Shpaml, I'm thinking that introducing some kind of syntax to deal with this would be very beneficial.

I suggest a keyword TIGHT (or some other similar word) similar to VERBATIM which will cause all sub-tags to contain no space between them.

What do you think? 

Ram Rachum

unread,
Feb 16, 2014, 8:46:41 AM2/16/14
to shp...@googlegroups.com
Anyone?

James Robert

unread,
Feb 23, 2014, 3:25:19 PM2/23/14
to shp...@googlegroups.com
Hey, Sorry for the delay, I've been out of the country for a couple weeks :)

I'm not 100% convinced that this is a big win, do you have some use cases/before-after snippets where this would make a big difference? 

Ram Rachum

unread,
Feb 23, 2014, 4:44:53 PM2/23/14
to shp...@googlegroups.com
Ah, I remember there was a case before where it made a big difference, but that was a couple of weeks back, and I don't remember now...

I guess we can let it go until it pops up again. (Unless someone else wants to champion this.) 
Reply all
Reply to author
Forward
0 new messages