diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php index 793ae26fe..a9568c4be 100644 --- a/libraries/sqlparser.lib.php +++ b/libraries/sqlparser.lib.php @@ -2119,10 +2119,12 @@ if (! defined('PMA_MINIMUM_COMMON')) { $docu = TRUE; break; } // end switch - // inner_sql is a span that exists for all cases + // inner_sql is a span that exists for all cases, except query_only // of $cfg['SQP']['fmtType'] to make possible a replacement // for inline editing - $str .= ''; + if ($mode!='query_only') { + $str .= ''; + } $close_docu_link = false; $indent = 0; $bracketlevel = 0; @@ -2617,8 +2619,10 @@ if (! defined('PMA_MINIMUM_COMMON')) { $str .= ''; $close_docu_link = false; } - // close inner_sql span - $str .= ''; + if ($mode!='query_only') { + // close inner_sql span + $str .= ''; + } if ($mode=='color') { // close syntax span $str .= '';