diff options
author | teramako | 2013-04-03 21:15:18 +0900 |
---|---|---|
committer | teramako | 2013-04-03 21:15:18 +0900 |
commit | adead626df8873c919216b1b154b3a5fd6b88edf (patch) | |
tree | b5b4d89590990a62d8753dd28db40197fcbea23a /PDF.js.js | |
parent | 9067d13d9699ecd4b3a5243219bae357fc4e8556 (diff) | |
download | vimperator-plugins-adead626df8873c919216b1b154b3a5fd6b88edf.tar.bz2 |
fix: PDF.js.js
Diffstat (limited to 'PDF.js.js')
-rw-r--r-- | PDF.js.js | 42 |
1 files changed, 20 insertions, 22 deletions
@@ -33,26 +33,24 @@ THE POSSIBILITY OF SUCH DAMAGE. }}} */ // INFO {{{ -let INFO = -<> - <plugin name="PDF.js.js" version="1.0.0" - href="http://vimpr.github.com/" - summary="PDF.js controller." - lang="en-US" - xmlns="http://vimperator.org/namespaces/liberator"> - <author email="anekos@snca.net">anekos</author> - <license>New BSD License</license> - <project name="Vimperator" minVersion="3.0"/> - <p></p> - <item> - <tags>:pdfjs-mapping-sample</tags> - <description><p>mapping sample</p><code><![CDATA[ - nnoremap -urls ^\\.pdf$ i :<C-u>pdfjs index<Space> - nnoremap -urls ^\\.pdf$ z :<C-u>pdfjs zoom<Space> - ]]></code></description> - </item> - </plugin> -</>; +let INFO = xml` +<plugin name="PDF.js.js" version="1.0.0" + href="http://vimpr.github.com/" + summary="PDF.js controller." + lang="en-US" + xmlns="http://vimperator.org/namespaces/liberator"> + <author email="anekos@snca.net">anekos</author> + <license>New BSD License</license> + <project name="Vimperator" minVersion="3.0"/> + <p></p> + <item> + <tags>:pdfjs-mapping-sample</tags> + <description><p>mapping sample</p><code><![CDATA[ + nnoremap -urls ^\\.pdf$ i :<C-u>pdfjs index<Space> + nnoremap -urls ^\\.pdf$ z :<C-u>pdfjs zoom<Space> + ]]></code></description> + </item> +</plugin>`; // }}} (function () { @@ -206,9 +204,9 @@ let INFO = function desc (o) { const PageRE = /#page=(\d+)\&/; if (o.href && PageRE.test(o.href)) { - return String(<>{nSpace(getOutlineLevel(o))} {o.textContent} (p{o.href.match(PageRE)[1]})</>); + return `${nSpace(getOutlineLevel(o))} ${o.textContent} (p${o.href.match(PageRE)[1]})`; } else { - return String(<>{nSpace(getOutlineLevel(o))} {o.textContent}</>); + return `${nSpace(getOutlineLevel(o))} ${o.textContent}`; } } |