2014-01-14 15:21 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/hbjson.c
    ! do not indent null used as cross reference replacement if human
      readable format is disabled
This commit is contained in:
Przemysław Czerpak
2014-01-14 15:21:58 +01:00
parent 48d1ffbca3
commit 72d883c13c
2 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2014-01-14 15:21 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbjson.c
! do not indent null used as cross reference replacement if human
readable format is disabled
2014-01-14 13:13 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbjson.c
! indent null used as cross reference replacement

View File

@@ -153,7 +153,7 @@ static void _hb_jsonEncode( PHB_ITEM pValue, PHB_JSON_ENCODE_CTX pCtx,
{
if( pCtx->pId[ nIndex ] == id )
{
if( !fEOL )
if( !fEOL && pCtx->fHuman )
_hb_jsonCtxAddIndent( pCtx, nLevel * INDENT_SIZE );
_hb_jsonCtxAdd( pCtx, "null", 4 );
return;