diff --git a/src/main/java/org/jruby/ext/openssl/X509CRL.java b/src/main/java/org/jruby/ext/openssl/X509CRL.java index 11b6378f..5094c364 100644 --- a/src/main/java/org/jruby/ext/openssl/X509CRL.java +++ b/src/main/java/org/jruby/ext/openssl/X509CRL.java @@ -397,9 +397,8 @@ static void extensions_to_text(final ThreadContext context, text.append('\n'); final String value = ext.value(context).toString(); for ( String val : value.split("\n") ) { - text.append(S20, 0, 16).append(val).append('\n'); + text.append(S20,0,16).append( val ).append('\n'); } - if ( value.charAt(value.length() - 1) != '\n' ) text.append('\n'); } } diff --git a/src/test/ruby/x509/test_x509crl.rb b/src/test/ruby/x509/test_x509crl.rb index 9b933919..1cafb613 100644 --- a/src/test/ruby/x509/test_x509crl.rb +++ b/src/test/ruby/x509/test_x509crl.rb @@ -55,7 +55,7 @@ def test_revoked_to_text crl_data = File.read(File.expand_path('../revoked.crl', __FILE__)) crl = OpenSSL::X509::CRL.new crl_data - #puts "CRL (revoked) text = \n#{crl.to_text}" + puts "CRL (revoked) text = \n#{crl.to_text}" if $VERBOSE expected_text = REVOKED_TEXT.split("\n")[0, 12]