Page 1 of 1

Go Diagram after SGF problem.

Posted: Fri Feb 11, 2011 8:31 pm
by Dusk Eagle
It seems that when a user pastes an sgf onto the forum, and that sgf contains [*go*] (minus the *), any go diagrams after that post won't be parsed properly. As an example, here is a post from Chew where this occurs:
Chew Terr wrote:I would appreciate a look at the opening of this game, if the offer's still open? It's something a bit different than my normal (Kobayashi) fuseki, and was actually my first game in a few weeks.

Click Here To Show Diagram Code
[go]$$B Moves 1 to 8
$$ +---------------------------------------+
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . 6 . . . . . |
$$ | . . . 2 . . . . . , . . . . . 1 . . . |
$$ | . . 8 . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . 7 . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . 3 , . . . . . , . . . . . 4 . . . |
$$ | . . . . . . . . . 5 . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ +---------------------------------------+[/go]
Gah, I had that diagram working a minute ago. Does anyone see what I messed up on the diagram? Mods, if you do, feel free to edit this to fix it.

Re: Go Diagram after SGF problem.

Posted: Fri Feb 11, 2011 10:39 pm
by Jordus
hmmm interesting... you can fix it by adding

Code: Select all

[/go] before the [/sgf] like this :  [/go][/sgf]

your original post (with the fix in it):
It seems that when a user pastes an sgf onto the forum, and that sgf contains [*go*] (minus the *), any go diagrams after that post won't be parsed properly. As an example, here is a post from Chew where this occurs:
Chew Terr wrote:I would appreciate a look at the opening of this game, if the offer's still open? It's something a bit different than my normal (Kobayashi) fuseki, and was actually my first game in a few weeks.

Click Here To Show Diagram Code
[go]$$B Moves 1 to 8
$$ +---------------------------------------+
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . 6 . . . . . |
$$ | . . . 2 . . . . . , . . . . . 1 . . . |
$$ | . . 8 . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . 7 . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . 3 , . . . . . , . . . . . 4 . . . |
$$ | . . . . . . . . . 5 . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ +---------------------------------------+[/go]
Gah, I had that diagram working a minute ago. Does anyone see what I messed up on the diagram? Mods, if you do, feel free to edit this to fix it.
as for an auto fix... I'll have to look into it...