diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-08 19:44:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-08 19:44:40 -0400 |
commit | 8e50e00d25d321a8689051f7ab7452311c3925d5 (patch) | |
tree | 463de48368a81d7c82ca96f89b05cd46e2627b84 /doc | |
parent | a380fa0e6b3e18db86eb00ab235abfc75581a11d (diff) | |
parent | 6512423f159a0917137b2caca3fa244147dd0131 (diff) |
Merge remote branch 'origin/master'
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/html5_time_element__39__s_pubdate_wrong_when_using_xhtml5___34__mode__34__.mdwn | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/doc/bugs/html5_time_element__39__s_pubdate_wrong_when_using_xhtml5___34__mode__34__.mdwn b/doc/bugs/html5_time_element__39__s_pubdate_wrong_when_using_xhtml5___34__mode__34__.mdwn index c55b3f62d..2dd0d945f 100644 --- a/doc/bugs/html5_time_element__39__s_pubdate_wrong_when_using_xhtml5___34__mode__34__.mdwn +++ b/doc/bugs/html5_time_element__39__s_pubdate_wrong_when_using_xhtml5___34__mode__34__.mdwn @@ -10,31 +10,33 @@ Otherwise the XML parser chokes. <http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#attr-time-pubdate> +(indented exactly 4 spaces) + <pre> -diff --git a/IkiWiki.pm b/IkiWiki.pm -index 1f2ab07..6ab5b56 100644 ---- a/IkiWiki.pm -+++ b/IkiWiki.pm -@@ -1004,7 +1004,7 @@ sub displaytime ($;$$) { - my $time=formattime($_[0], $_[1]); - if ($config{html5}) { - return '<time datetime="'.date_3339($_[0]).'"'. -- ($_[2] ? ' pubdate' : ''). -+ ($_[2] ? ' pubdate="'.date_3339($_[0]).'"' : ''). - '>'.$time.'</time>'; - } - else { -diff --git a/IkiWiki/Plugin/relativedate.pm b/IkiWiki/Plugin/relativedate.pm -index fe8ef09..8c4a1b4 100644 ---- a/IkiWiki/Plugin/relativedate.pm -+++ b/IkiWiki/Plugin/relativedate.pm -@@ -59,7 +59,7 @@ sub mydisplaytime ($;$$) { - - if ($config{html5}) { - return '<time datetime="'.IkiWiki::date_3339($time).'"'. -- ($pubdate ? ' pubdate' : '').$mid.'</time>'; -+ ($pubdate ? ' pubdate="'.IkiWiki::date_3339($time).'"' : '').$mid.'</time>'; - } - else { - return '<span'.$mid.'</span>'; + diff --git a/IkiWiki.pm b/IkiWiki.pm + index 1f2ab07..6ab5b56 100644 + --- a/IkiWiki.pm + +++ b/IkiWiki.pm + @@ -1004,7 +1004,7 @@ sub displaytime ($;$$) { + my $time=formattime($_[0], $_[1]); + if ($config{html5}) { + return '<time datetime="'.date_3339($_[0]).'"'. + - ($_[2] ? ' pubdate' : ''). + + ($_[2] ? ' pubdate="'.date_3339($_[0]).'"' : ''). + '>'.$time.'</time>'; + } + else { + diff --git a/IkiWiki/Plugin/relativedate.pm b/IkiWiki/Plugin/relativedate.pm + index fe8ef09..8c4a1b4 100644 + --- a/IkiWiki/Plugin/relativedate.pm + +++ b/IkiWiki/Plugin/relativedate.pm + @@ -59,7 +59,7 @@ sub mydisplaytime ($;$$) { + + if ($config{html5}) { + return '<time datetime="'.IkiWiki::date_3339($time).'"'. + - ($pubdate ? ' pubdate' : '').$mid.'</time>'; + + ($pubdate ? ' pubdate="'.IkiWiki::date_3339($time).'"' : '').$mid.'</time>'; + } + else { + return '<span'.$mid.'</span>'; </pre> |