If you take a few weeks off in between jobs, that's not an issue. You put the month and year you leave a job.
So left in July 2019, started new job in august 2019.
Take a few months off in between jobs needs an explanation. Because those are signs that someone just leaves jobs when they fancy, dont have anything to go, bad planning, especially if the time you have been in the jobs is short. Not always, but often.
Not sure why OP is putting gap of mat leave.
I can only assume she had a job (perhaps for a short period) instead of going on mat leave she left. Returned to work a fee months later yo a different employer and repeated the process again. A few times. If OP had a job, then went on mat and decided not to return and went elsewhere to work, there wouldnt be a gap.
Gaps bother people more when the periods of employment are also short.
I took 9 months off. I was getting divorced moving area, had 2 kids. Not one job showed showed shock at the gap. I hot interviews for the jobs I applied for and all the Interviewers though it was an excellent idea.