Skip to content

Commit

Permalink
accept "yml" extension, added hint that templates accepts constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed Aug 3, 2024
1 parent 5f69cc6 commit d95ad93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/exporting-xml.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,14 @@ <h4>Step 3. Defining the column mapping</h4>The "XML Column Mapping" dialog
table describes the XML (JSON/YAML) represenation of each exported row:<br />

<ul>
<li><p>Expression starting with <span style="font-style: italic;"><font color="#0000bb">SQL:</font></span>
<li><p>Expressions starting with <span style="font-style: italic;"><font color="#0000bb">SQL:</font></span>
will be replaced by the value of the SQL expression thereafter.
<span style="font-style: italic;"><font color="#0000bb">T</font></span> is the alias for the row. Note
that even scalar subqueries are allowed here.</p></li>

<li><p>Expressions that do not start with <span style="font-style: italic;"><font color="#0000bb">SQL:</font></span> are included directly as constants in the representation.
</p></li>

<li><p><span style="font-style: italic;"><font color="#0000bb">j:assoc</font></span> elements will be
replaced by the representation of the associated rows.</p></li>

Expand Down
2 changes: 1 addition & 1 deletion src/main/gui/net/sf/jailer/ui/FileView.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public FileView(Window owner, Window window, String file, boolean withSyntaxHigh
this.withSyntaxHighlighting = withSyntaxHighlighting;
this.isXml = file.toLowerCase().endsWith(".xml");
this.isJson = file.toLowerCase().endsWith(".json");
this.isYaml = file.toLowerCase().endsWith(".yaml");
this.isYaml = file.toLowerCase().endsWith(".yaml") || file.toLowerCase().endsWith(".yml");

File f = new File(file);
if (f.exists() && f.length() > 65L*1024L*1024L / (file.toLowerCase().endsWith(".zip") || file.toLowerCase().endsWith(".gz")? 5 : 1)) {
Expand Down

0 comments on commit d95ad93

Please sign in to comment.