| TWiki version: | TWikiRelease02Sep2004 |
| TWiki plugins: | DefaultPlugin, CommentPlugin |
| Server OS: | |
| Web server: | |
| Perl version: | |
| Client OS: | |
| Web Browser: |
--- Comment.pm.orig 2005-02-24 18:27:40.000000000 +0100
+++ Comment.pm 2005-02-24 18:29:22.000000000 +0100
@@ -275,9 +275,9 @@
} elsif ( $anchor ) {
# position relative to anchor
if ( $position eq "BEFORE" ) {
- $text =~ s/^($anchor)/$output$1/m;
+ $text =~ s/^($anchor)/$output\n$1/m; # put newline after comment to keep anchor left justified
} else { # AFTER
- $text =~ s/^($anchor)/$1$output/m;
+ $text =~ s/^($anchor)/$1\n$output/m; # put newline before comments so don't merge with anchor
}
} else {
# Position relative to index'th comment
| ChangeProposalForm | |
|---|---|
| TopicClassification | BugReport |
| TopicSummary | Comment plugin won't work on anchors |
| CurrentState | MergedToCore |
| OutstandingIssues | |
| RelatedTopics | |
| InterestedParties | OlivierBerger LyallPearce |
| ProposedFor | |
| TWikiContributors | |
| HasPriority | 100 |