projects
/
asciidoctor_to_rss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added uri to the feed item
[asciidoctor_to_rss.git]
/
src
/
main
/
java
/
net
/
wpitchoune
/
asciidoctor
/
Main.java
diff --git
a/src/main/java/net/wpitchoune/asciidoctor/Main.java
b/src/main/java/net/wpitchoune/asciidoctor/Main.java
index
f68f354
..
1e09ab0
100644
(file)
--- a/
src/main/java/net/wpitchoune/asciidoctor/Main.java
+++ b/
src/main/java/net/wpitchoune/asciidoctor/Main.java
@@
-145,7
+145,7
@@
public class Main {
DocumentHeader h;
SyndContentImpl c;
StringBuffer news;
DocumentHeader h;
SyndContentImpl c;
StringBuffer news;
- String itemTitle, itemContent;
+ String itemTitle, itemContent
, itemURI
;
inDir = new File(args[0]);
outDir = new File(args[1]);
inDir = new File(args[0]);
outDir = new File(args[1]);
@@
-187,7
+187,10
@@
public class Main {
e = new SyndEntryImpl();
e.setTitle(itemTitle);
e = new SyndEntryImpl();
e.setTitle(itemTitle);
- e.setUri(cfg.getFeedBaseURL() + "/" + html.getName());
+ itemURI = cfg.getFeedBaseURL() + "/" + html.getName();
+ e.setUri(itemURI);
+ e.setLink(itemURI);
+
c = toSyndContentImpl(itemContent);
c = toSyndContentImpl(itemContent);