0

I'm not able to format a link with whitespaces in it in comments correctly. See my comment: Grails understanding belongsTo Association

[hasOne](http://grails.org/doc/latest/ref/Domain Classes/hasOne.html)

will not work properly (the same output only connected link is linked).

3
  • What website gives out links that have unencoded spaces in them? That's just wrong on so many levels...
    – animuson StaffMod
    Jun 21, 2012 at 7:19
  • testing. hasOne Jun 21, 2012 at 7:29
  • Just manually replace space with %20 and it works. Jun 21, 2012 at 7:30

1 Answer 1

2

Here you go: hasOne

The trick is to urlencode the space by hand:

[hasOne](http://grails.org/doc/latest/ref/Domain%20Classes/hasOne.html)

... also works for those annoying Wikipedia links with parentheses.

3
  • Is it imaginable to autodetect whitespaces in those links and enrich them with %20? As a feature request?
    – matcauthon
    Jun 21, 2012 at 7:30
  • 2
    @matcauthon Probably not.
    – yannis
    Jun 21, 2012 at 7:36
  • @matcauthon: Whitespaces are used for the [text](URL "title") syntax, so auto-encoding it is not an option.
    – Dennis
    Jun 21, 2012 at 12:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .