zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #02045
Re: List embedded files into template
Thanks for your answer, I submited the bug request you asked for.
https://bugs.launchpad.net/zim/+bug/1080705
I thought to one more thing : it would be interresting to have a particular
class, according to the type of the
It looks like this patch does the job quite well :
=== modified file 'zim/formats/html.py'
--- zim/formats/html.py 2012-02-22 12:32:31 +0000
+++ zim/formats/html.py 2012-11-19 14:25:52 +0000
@@ -133,7 +133,8 @@
elif element.tag == 'link':
href = self.linker.link(element.attrib['href'])
title = text.replace('"', '"')
- output.append('<a href="%s" title="%s">%s</a>' % (href,
title, text))
+ hrefType = link_type(element.attrib['href'])
+ output.append('<a href="%s" title="%s" class="%s">%s</a>'
% (href, title, hrefType, text))
elif element.tag in ['emphasis', 'strong', 'mark', 'strike',
'code','sub','sup']:
if element.tag == 'mark': tag = 'u'
elif element.tag == 'emphasis': tag = 'em'
I tried to commit with bzr, but bzr send failed : no success : bzr: ERROR:
No mail-to address (--mail-to) or output (-o) specified.
--
Jean-Baptiste Holcroft
2012/11/17 Jaap Karssenberg <jaap.karssenberg@xxxxxxxxx>
> On Sat, Nov 17, 2012 at 11:45 AM, Jean-Baptiste Holcroft <
> jb.holcroft@xxxxxxxxx> wrote:
>
>> I wanted to have a little bit of fun with Templates using
>> http://www.initializr.com/
>>
>> Is there a way to list all files embeded files in page ?
>> Do you have more information about Files templates ? I do not understand
>> what it is. Is says to go to Attachments but I do not understand how it
>> works :(
>> "*If you are looking for information for file templates for attachments,
>> see Attachments <http://zim-wiki.org/manual/Help/Attachments.html>*"
>>
>> In my fun, I also successfully crashed Zim ;) :
>> https://bugs.launchpad.net/zim/+bug/1079811
>> I'll be please to give the final templates to Zim in you are interested
>> and licence allow it.
>>
>
>
> Assuming your question is how to list attached files in an export
> template. Correct ?
>
> Afraid there is no function for this at the moment, but if you file a
> request in the tracker, we can check how easy it is to add that.
>
> (File templates are something else, those are templates to create new
> attachments.)
>
> Regards,
>
> Jaap
>
>
>
Follow ups
References