Commit 1cfa0973 authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Add document title as part of annotations export HTML title

parent 83ca0305
...@@ -171,7 +171,7 @@ export class AnnotationsExporter { ...@@ -171,7 +171,7 @@ export class AnnotationsExporter {
return renderToString( return renderToString(
<html lang="en"> <html lang="en">
<head> <head>
<title>Annotations export - Hypothesis</title> <title>{`Annotations on "${title}"`}</title>
<meta charSet="UTF-8" /> <meta charSet="UTF-8" />
</head> </head>
<body> <body>
......
...@@ -302,7 +302,9 @@ ${formattedNow},http://example.com,My group,Annotation,,John Doe,Annotation text ...@@ -302,7 +302,9 @@ ${formattedNow},http://example.com,My group,Annotation,,John Doe,Annotation text
removeAllIndentation(result), removeAllIndentation(result),
removeAllIndentation(`<html lang="en"> removeAllIndentation(`<html lang="en">
<head> <head>
<title>Annotations export - Hypothesis</title> <title>
Annotations on &quot;A special document&quot;
</title>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
</head> </head>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment