GIT.Harvie.CZ
/
mirrors
/
DokuWiki-Plugin-SVGEdit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3955ca3
)
autodetection of image size for inline SVG
author
Harvie
<tomas@mudrunka.cz>
Sun, 20 Jun 2010 02:17:47 +0000
(
04:17
+0200)
committer
Harvie
<tomas@mudrunka.cz>
Sun, 20 Jun 2010 02:17:47 +0000
(
04:17
+0200)
syntax.php
patch
|
blob
|
blame
|
history
diff --git
a/syntax.php
b/syntax.php
index f814a3270729bfbd8544de3eeef7963f50830d6f..c5bd599e4b683486f9c54fca5c703c96beca054f 100755
(executable)
--- a/
syntax.php
+++ b/
syntax.php
@@
-56,7
+56,7
@@
class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
//detect image size for stupid browsers (like firefox) - ugly (fails if svg does not contain information about it's size)
$svg_dimensions = '';
//detect image size for stupid browsers (like firefox) - ugly (fails if svg does not contain information about it's size)
$svg_dimensions = '';
- preg_match('/width="[0-9]+" height="[0-9]+"/', rawWiki($svg_wiki_page), $_);
+ preg_match('/width="[0-9]+" height="[0-9]+"/',
$data[1].
rawWiki($svg_wiki_page), $_);
if(isset($_[0])) $svg_dimensions = $_[0];
//use object tag for stupid browsers (like firefox) - ugly (relies on browser identification)
if(isset($_[0])) $svg_dimensions = $_[0];
//use object tag for stupid browsers (like firefox) - ugly (relies on browser identification)
This page took
0.139685 seconds
and
4
git commands to generate.