Discussion:
[t2t] links to ![file name[.txt
rch
2015-09-28 07:02:20 UTC
Permalink
I am using txt2tags to make an html guide to files in
local directories.

The t2t file has links coded like this -
[foobar.txt file:///home/rch/foobar.txt]

But some of the file names have got non-alpha characters
e.g. « ![file name[.txt »

For such files, this doesn't work -
[pathological name file:///home/rch/![file name[.txt]

But neither does this -
[pathological name file:///home/rch/![file name&#91.txt]

Is there a work around to get this in the html -
<A HREF="file:///home/rch/&#33;&#91;file&#32;name&#91.txt">pathological
name </A>

?

Richard H



------------------------------------------------------------------------------
rch
2015-09-28 10:47:07 UTC
Permalink
Answering my own question;
¿Is there a work around to get this in the html?
<A HREF="file:///home/rch/&#33;&#91;file&#32;name&#91.txt">pathological
name </A>

The answer is yes!
Just write that out verbatim, and surround it top and bottom by three
backticks
thus

```
<A HREF="file:///home/rch/&#33;&#91;file&#32;name&#91.txt">pathological
name </A><BR/>
```

Works like a charm.
Richard H


------------------------------------------------------------------------------
Little Girl
2015-09-29 01:27:21 UTC
Permalink
Hey there,
Post by rch
Answering my own question;
¿Is there a work around to get this in the html?
<A
HREF="file:///home/rch/&#33;&#91;file&#32;name&#91.txt">pathological
name </A>
The answer is yes!
Just write that out verbatim, and surround it top and bottom by
three backticks
thus
```
<A
HREF="file:///home/rch/&#33;&#91;file&#32;name&#91.txt">pathological
name </A><BR/> ```
Works like a charm.
Another alternative is to use postproc:

http://sourceforge.net/p/txt2tags/mailman/txt2tags-list/?viewmonth=201507&viewday=30
--
Little Girl

There is no spoon.

------------------------------------------------------------------------------
Loading...