Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underlined space follows a link in formatted mode #65

Open
lorensr opened this issue Apr 4, 2013 · 1 comment
Open

Underlined space follows a link in formatted mode #65

lorensr opened this issue Apr 4, 2013 · 1 comment

Comments

@lorensr
Copy link

lorensr commented Apr 4, 2013

To reproduce:

$ cat test.coffee
a href: '', -> 'link'
text 'after'
$ coffeecup -f test.coffee && cat test.html
<a href="">
  link
</a>
after
$ open test.html

Perhaps there should be a formatting exception for text within <a> so that it gives:

<a href="">link</a>
after

However, this still leaves the problem that it adds a space between link and after. I don't think using the -f option should change how the page looks - just how the HTML looks.

@10xLaCroixDrinker
Copy link
Contributor

@lorensr If you want the link to be rendered inline, you could do:

p "Before #{cede -> a href: '/', 'a link'} after."

That will output:

<p>Before <a href="/">a link</a>
 after.</p>

I did a little work on separating inline tags (e.g. a, span, etc.) from the regular tags so that they would always be formatted inline when using the -f option. Do you think that's something other people would be interested in?

What do you think, @gradus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants