aboutsummaryrefslogtreecommitdiffstats
path: root/changelog.js
diff options
context:
space:
mode:
Diffstat (limited to 'changelog.js')
-rwxr-xr-xchangelog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/changelog.js b/changelog.js
index 0083d29b..59d72eeb 100755
--- a/changelog.js
+++ b/changelog.js
@@ -85,7 +85,6 @@ var currentDate = function() {
var printSection = function(stream, title, section) {
- var NESTED = true;
var components = Object.getOwnPropertyNames(section).sort();
if (!components.length) return;
@@ -94,9 +93,10 @@ var printSection = function(stream, title, section) {
components.forEach(function(name) {
var prefix = '-';
+ var nested = section[name].length > 1;
if (name !== EMPTY_COMPONENT) {
- if (NESTED) {
+ if (nested) {
stream.write(util.format('- **%s:**\n', name));
prefix = ' -';
} else {