Solution ex. by jQuery:
Reference: http://stackoverflow.com/questions/1539367/remove-whitespace-and-line-breaks-between-html-elements-using-jquery
File: qa-theme/Your theme/qa-theme.php
Source:
function head_script() { qa_html_theme_base::head_script(); $this->output( '<SCRIPT TYPE="text/javascript"><!--', '$.fn.cleanWhitespace = function() {', ' textNodes = this.contents().filter(', ' function() { return (this.nodeType == 3 && !/\S/.test(this.nodeValue)); })', ' .remove();', ' return this;', '}', '$(document).ready(function(){', ' $(\'.qa-widget-side\').cleanWhitespace();', ' $(\'.qa-widget-side:empty\').remove();', '});', '//--></SCRIPT>' ); }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.