Skip to content
Permalink
Browse files

do not create link for current class

  • Loading branch information
3nids committed Dec 19, 2017
1 parent db8a7c6 commit 36a05a3a0d367aeb2deada0e83731010dc9950c9
Showing with 5 additions and 1 deletion.
  1. +5 −1 scripts/sipify.pl
@@ -163,7 +163,11 @@ sub processDoxygenLine {
}
}
# create links in plain text too (less performant)
$line =~ s/\b(Qgs[A-Z]\w+)\b(\.?$|[^\w]{2})/:py:class:`$1`$2/g;
if ( $line =~ m/\b(Qgs[A-Z]\w+)\b(\.?$|[^\w]{2})/) {
if ( $1 !~ $ACTUAL_CLASS ) {
$line =~ s/\b(Qgs[A-Z]\w+)\b(\.?$|[^\w]{2})/:py:class:`$1`$2/g;
}
}
$line =~ s/\b(Qgs[A-Z]\w+\.[a-z]\w+\(\))(\.|\b|$)/:py:func:`$1`/g;
if ( $line =~ m/[\\@]note (.*)/ ) {
return "\n.. note::\n\n $1\n";

0 comments on commit 36a05a3

Please sign in to comment.
You can’t perform that action at this time.