Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21 from qucosa/CMR-533
Browse files Browse the repository at this point in the history
Filter <record> tags in ListIdentifiers output
  • Loading branch information
claussni authored Jul 16, 2018
2 parents 4062288 + 88e7be3 commit aad86e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/proai/cache/CachedContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public void write(PrintWriter out) throws ServerException {
new FileInputStream(m_file), "UTF-8"));
String line = reader.readLine();
while (line != null) {
out.println(line);
if (!m_headerOnly || !line.contains("<record>")) {
out.println(line);
}
if (m_headerOnly && line.contains("</header>")) {
out.println("</record>");
break;
}
line = reader.readLine();
Expand Down

0 comments on commit aad86e9

Please sign in to comment.