diff --git a/CHANGES b/CHANGES
index 2928f56c91..dd0e4f22de 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+4101. [bug] dig: the +split and +rrcomments options didn't
+ work with +short. [RT #39291]
+
4100. [bug] Inherited owernames on the line immediately following
a $INCLUDE were not working. [RT #39268]
diff --git a/bin/dig/dig.c b/bin/dig/dig.c
index df601b5708..fdb95874b2 100644
--- a/bin/dig/dig.c
+++ b/bin/dig/dig.c
@@ -344,9 +344,12 @@ say_message(dns_rdata_t *rdata, dig_query_t *query, isc_buffer_t *buf) {
ADD_STRING(buf, " ");
}
+ if (rrcomments)
+ styleflags |= DNS_STYLEFLAG_RRCOMMENT;
if (nocrypto)
styleflags |= DNS_STYLEFLAG_NOCRYPTO;
- result = dns_rdata_tofmttext(rdata, NULL, styleflags, 0, 60, " ", buf);
+ result = dns_rdata_tofmttext(rdata, NULL, styleflags, 0,
+ splitwidth, " ", buf);
if (result == ISC_R_NOSPACE)
return (result);
check_result(result, "dns_rdata_totext");
diff --git a/doc/arm/notes.xml b/doc/arm/notes.xml
index e544456c5f..9b272c4968 100644
--- a/doc/arm/notes.xml
+++ b/doc/arm/notes.xml
@@ -587,6 +587,12 @@
cause an assertion failure in mem.c. [RT #38979]
+
+
+ Some answer formatting options didn't work correctly with
+ dig +short. [RT #39291]
+
+