Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Support for multiple part names

  • Loading branch information...
commit a4c5b1c626dbb0edfa97aaea4dd2d998c7debecf 1 parent 34eb380
@joehewitt authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 tag.js
View
11 tag.js
@@ -1103,14 +1103,23 @@ function addParts(val, delim, lead, block, info, escapeIt, lhs) {
// This is fine as we are not passing it to a function and only displaying it.
var partName = getName(part.names[0], lhs);
if (part.format) {
+ var partNames = [];
+ for (var j = 0; j < part.names.length; ++j) {
+ partNames.push(getName(part.names[j], lhs));
+ }
for (var j = 0; j < part.format.length; ++j) {
var format = part.format[j];
if (format == 'html') {
escapeIt = false;
} else {
- partName = getName(format, lhs) + "(" + partName + ")";
+ partName = getName(format, lhs) + "("
+ + (partNames ? partNames.join(',') : partName)
+ + ")";
+ partNames = null;
}
}
+ } else {
+ partName = getName(part.names[0], lhs)
}
if (escapeIt)
Please sign in to comment.
Something went wrong with that request. Please try again.