fixed patch display...
parent
d238fd1b04
commit
6512423f15
|
@ -10,6 +10,8 @@ Otherwise the XML parser chokes.
|
||||||
|
|
||||||
<http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#attr-time-pubdate>
|
<http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#attr-time-pubdate>
|
||||||
|
|
||||||
|
(indented exactly 4 spaces)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
diff --git a/IkiWiki.pm b/IkiWiki.pm
|
diff --git a/IkiWiki.pm b/IkiWiki.pm
|
||||||
index 1f2ab07..6ab5b56 100644
|
index 1f2ab07..6ab5b56 100644
|
||||||
|
@ -18,10 +20,10 @@ index 1f2ab07..6ab5b56 100644
|
||||||
@@ -1004,7 +1004,7 @@ sub displaytime ($;$$) {
|
@@ -1004,7 +1004,7 @@ sub displaytime ($;$$) {
|
||||||
my $time=formattime($_[0], $_[1]);
|
my $time=formattime($_[0], $_[1]);
|
||||||
if ($config{html5}) {
|
if ($config{html5}) {
|
||||||
return '<time datetime="'.date_3339($_[0]).'"'.
|
return '<time datetime="'.date_3339($_[0]).'"'.
|
||||||
- ($_[2] ? ' pubdate' : '').
|
- ($_[2] ? ' pubdate' : '').
|
||||||
+ ($_[2] ? ' pubdate="'.date_3339($_[0]).'"' : '').
|
+ ($_[2] ? ' pubdate="'.date_3339($_[0]).'"' : '').
|
||||||
'>'.$time.'</time>';
|
'>'.$time.'</time>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
diff --git a/IkiWiki/Plugin/relativedate.pm b/IkiWiki/Plugin/relativedate.pm
|
diff --git a/IkiWiki/Plugin/relativedate.pm b/IkiWiki/Plugin/relativedate.pm
|
||||||
|
@ -31,10 +33,10 @@ index fe8ef09..8c4a1b4 100644
|
||||||
@@ -59,7 +59,7 @@ sub mydisplaytime ($;$$) {
|
@@ -59,7 +59,7 @@ sub mydisplaytime ($;$$) {
|
||||||
|
|
||||||
if ($config{html5}) {
|
if ($config{html5}) {
|
||||||
return '<time datetime="'.IkiWiki::date_3339($time).'"'.
|
return '<time datetime="'.IkiWiki::date_3339($time).'"'.
|
||||||
- ($pubdate ? ' pubdate' : '').$mid.'</time>';
|
- ($pubdate ? ' pubdate' : '').$mid.'</time>';
|
||||||
+ ($pubdate ? ' pubdate="'.IkiWiki::date_3339($time).'"' : '').$mid.'</time>';
|
+ ($pubdate ? ' pubdate="'.IkiWiki::date_3339($time).'"' : '').$mid.'</time>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return '<span'.$mid.'</span>';
|
return '<span'.$mid.'</span>';
|
||||||
</pre>
|
</pre>
|
||||||
|
|
Loading…
Reference in New Issue