mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
Support comma in annotations when merging inline
This commit is contained in:
parent
28ff28a223
commit
cbd0ece0a6
@ -343,9 +343,9 @@ sub fix_annotations {
|
|||||||
$line =~ s/SIP_VIRTUALERRORHANDLER\(\s*(\w+)\s*\)/\/VirtualErrorHandler=$1\//;
|
$line =~ s/SIP_VIRTUALERRORHANDLER\(\s*(\w+)\s*\)/\/VirtualErrorHandler=$1\//;
|
||||||
|
|
||||||
# combine multiple annotations
|
# combine multiple annotations
|
||||||
# https://regex101.com/r/uvCt4M/3
|
# https://regex101.com/r/uvCt4M/4
|
||||||
do {no warnings 'uninitialized';
|
do {no warnings 'uninitialized';
|
||||||
$line =~ s/\/(\w+(=\w+)?)\/\s*\/(\w+(=\w+)?)\//\/$1,$3\//;
|
$line =~ s/\/([\w,]+(=\w+)?)\/\s*\/([\w,]+(=\w+)?)\//\/$1,$3\//;
|
||||||
(! $3) or dbg_info("combine multiple annotations -- works only for 2");
|
(! $3) or dbg_info("combine multiple annotations -- works only for 2");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user