libassert icon indicating copy to clipboard operation
libassert copied to clipboard

Strings that contains back slashes display wrongly

Open huangqinjin opened this issue 2 years ago • 2 comments

#include "assert.hpp"

int main()
{
    const char* path = "\\hello\\test\\";
    ASSERT(0, "", path);
}

image

huangqinjin avatar Aug 20 '22 16:08 huangqinjin

Thank you for the report, looks like it's something to do with how the string is split across multiple lines image image

jeremy-rifkin avatar Aug 24 '22 01:08 jeremy-rifkin

ah https://github.com/jeremy-rifkin/libassert/blob/080b08cb5c9ea4272e9f017ec79c81ca109a2766/src/assert.cpp#L1339-L1340

jeremy-rifkin avatar Aug 24 '22 01:08 jeremy-rifkin

Fixed now, sorry for the slow response!

jeremy-rifkin avatar Oct 15 '22 15:10 jeremy-rifkin