Consequences of 3656:ee3c7f3d964f. Deal with the fact that some subdocs may not have a filename field at all
This commit is contained in:
parent
9a40f9c2e9
commit
c345f21067
2 changed files with 7 additions and 0 deletions
|
@ -381,6 +381,11 @@ endopts:
|
||||||
string titleorfn = doc.meta[Rcl::Doc::keytt];
|
string titleorfn = doc.meta[Rcl::Doc::keytt];
|
||||||
if (titleorfn.empty())
|
if (titleorfn.empty())
|
||||||
titleorfn = doc.meta[Rcl::Doc::keyfn];
|
titleorfn = doc.meta[Rcl::Doc::keyfn];
|
||||||
|
if (titleorfn.empty()) {
|
||||||
|
string url;
|
||||||
|
printableUrl(rclconfig->getDefCharset(), doc.url, url);
|
||||||
|
titleorfn = path_getsimple(url);
|
||||||
|
}
|
||||||
|
|
||||||
char cpc[20];
|
char cpc[20];
|
||||||
sprintf(cpc, "%d", doc.pc);
|
sprintf(cpc, "%d", doc.pc);
|
||||||
|
|
|
@ -7,6 +7,8 @@ else:
|
||||||
ISP3 = False
|
ISP3 = False
|
||||||
|
|
||||||
def utf8string(s):
|
def utf8string(s):
|
||||||
|
if s is None:
|
||||||
|
return "None"
|
||||||
if ISP3:
|
if ISP3:
|
||||||
return s
|
return s
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue